aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-3454.rs
blob: 2a3c0c714606dbbcf3b9f38acc960797d74ee8dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#[lang = "sized"]
pub trait Sized {}

macro_rules! impl_foo {
	() => { impl Foo }
}

pub trait Foo {}

pub trait Bar {
    type Baz;
}

pub fn foo(_value: impl Bar<Baz = impl_foo!()>) -> i32 {
    15
}

pub fn bar(_value: impl Bar<Baz = impl Foo>) -> i32 {
    16
}