2015-02-17 17:20:08 +05:30
|
|
|
#![feature(rustc_attrs)]
|
|
|
|
|
2015-02-11 16:37:36 -05:00
|
|
|
#[rustc_object_lifetime_default]
|
2015-06-17 10:12:18 -04:00
|
|
|
struct A<T>(T); //~ ERROR BaseDefault
|
2015-02-11 16:37:36 -05:00
|
|
|
|
|
|
|
#[rustc_object_lifetime_default]
|
2015-06-17 10:12:18 -04:00
|
|
|
struct B<'a,T>(&'a (), T); //~ ERROR BaseDefault
|
2015-02-11 16:37:36 -05:00
|
|
|
|
|
|
|
#[rustc_object_lifetime_default]
|
|
|
|
struct C<'a,T:'a>(&'a T); //~ ERROR 'a
|
|
|
|
|
|
|
|
#[rustc_object_lifetime_default]
|
|
|
|
struct D<'a,'b,T:'a+'b>(&'a T, &'b T); //~ ERROR Ambiguous
|
|
|
|
|
|
|
|
#[rustc_object_lifetime_default]
|
|
|
|
struct E<'a,'b:'a,T:'b>(&'a T, &'b T); //~ ERROR 'b
|
|
|
|
|
|
|
|
#[rustc_object_lifetime_default]
|
|
|
|
struct F<'a,'b,T:'a,U:'b>(&'a T, &'b U); //~ ERROR 'a,'b
|
|
|
|
|
|
|
|
#[rustc_object_lifetime_default]
|
2015-06-24 10:17:31 -04:00
|
|
|
struct G<'a,'b,T:'a,U:'a+'b>(&'a T, &'b U); //~ ERROR 'a,Ambiguous
|
2015-02-11 16:37:36 -05:00
|
|
|
|
|
|
|
fn main() { }
|