File tree 1 file changed +5
-5
lines changed
src/test/compile-fail/associated-types
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- // revisions: func object clause
11
+ // revisions: func object clause
12
12
13
13
#![ allow( dead_code) ]
14
14
#![ feature( rustc_attrs) ]
@@ -40,25 +40,25 @@ fn func2(_: for<'a> fn() -> <() as Foo<'a>>::Item) {
40
40
41
41
#[ cfg( object) ]
42
42
fn object1 ( _: Box < for <' a > Fn ( <( ) as Foo < ' a > >:: Item ) -> & ' a i32 > ) {
43
- //[object]~^ ERROR return type references lifetime `'a`
43
+ //[object]~^ ERROR `Output` references lifetime `'a`
44
44
//[object]~| WARNING previously accepted
45
45
}
46
46
47
47
#[ cfg( object) ]
48
48
fn object2 ( _: Box < for <' a > Fn ( ) -> <( ) as Foo < ' a > >:: Item > ) {
49
- //[object]~^ ERROR return type references lifetime `'a`
49
+ //[object]~^ ERROR `Output` references lifetime `'a`
50
50
//[object]~| WARNING previously accepted
51
51
}
52
52
53
53
#[ cfg( clause) ]
54
54
fn clause1 < T > ( ) where T : for < ' a > Fn ( <( ) as Foo < ' a > >:: Item ) -> & ' a i32 {
55
- //[clause]~^ ERROR return type references lifetime `'a`
55
+ //[clause]~^ ERROR `Output` references lifetime `'a`
56
56
//[clause]~| WARNING previously accepted
57
57
}
58
58
59
59
#[ cfg( clause) ]
60
60
fn clause2 < T > ( ) where T : for < ' a > Fn ( ) -> <( ) as Foo < ' a > >:: Item {
61
- //[clause]~^ ERROR return type references lifetime `'a`
61
+ //[clause]~^ ERROR `Output` references lifetime `'a`
62
62
//[clause]~| WARNING previously accepted
63
63
}
64
64
You can’t perform that action at this time.
0 commit comments