]> git.lizzy.rs Git - rust.git/blob - src/test/ui/object-lifetime/object-lifetime-default.rs
Rollup merge of #97808 - alexcrichton:wasm-features, r=petrochenkov
[rust.git] / src / test / ui / object-lifetime / object-lifetime-default.rs
1 #![feature(rustc_attrs)]
2
3 #[rustc_object_lifetime_default]
4 struct A<T>(T); //~ ERROR BaseDefault
5
6 #[rustc_object_lifetime_default]
7 struct B<'a,T>(&'a (), T); //~ ERROR BaseDefault
8
9 #[rustc_object_lifetime_default]
10 struct C<'a,T:'a>(&'a T); //~ ERROR 'a
11
12 #[rustc_object_lifetime_default]
13 struct D<'a,'b,T:'a+'b>(&'a T, &'b T); //~ ERROR Ambiguous
14
15 #[rustc_object_lifetime_default]
16 struct E<'a,'b:'a,T:'b>(&'a T, &'b T); //~ ERROR 'b
17
18 #[rustc_object_lifetime_default]
19 struct F<'a,'b,T:'a,U:'b>(&'a T, &'b U); //~ ERROR 'a,'b
20
21 #[rustc_object_lifetime_default]
22 struct G<'a,'b,T:'a,U:'a+'b>(&'a T, &'b U); //~ ERROR 'a,Ambiguous
23
24 fn main() { }