File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ use std::rc::Rc;
77pub fn func < V , F : Fn ( & mut V ) > ( f : F ) -> A < impl X > {
88 A ( B ( C :: new ( D :: new ( move |st| f ( st) ) ) ) )
99 //~^ ERROR implementation of `FnOnce` is not general enough
10- //~^^ ERROR implementation of `Fn` is not general enough
11- //~^^^ ERROR implementation of `FnOnce` is not general enough
12- //~^^^^ ERROR implementation of `FnOnce` is not general enough
13- //~^^^^^ ERROR implementation of `Fn` is not general enough
14- //~^^^^^^ ERROR implementation of `FnOnce` is not general enough
15- //~^^^^^^^ ERROR implementation of `Fn` is not general enough
16- //~^^^^^^^^ ERROR implementation of `FnOnce` is not general enough
17- //~^^^^^^^^^ ERROR higher-ranked subtype error
18- //~^^^^^^^^^^ ERROR higher-ranked subtype error
10+ //~| ERROR implementation of `Fn` is not general enough
11+ //~| ERROR implementation of `FnOnce` is not general enough
12+ //~| ERROR implementation of `FnOnce` is not general enough
13+ //~| ERROR implementation of `Fn` is not general enough
14+ //~| ERROR implementation of `FnOnce` is not general enough
15+ //~| ERROR implementation of `Fn` is not general enough
16+ //~| ERROR implementation of `FnOnce` is not general enough
17+ //~| ERROR higher-ranked subtype error
18+ //~| ERROR higher-ranked subtype error
1919}
2020
2121trait X { }
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ const RCZ: *const i32 = &raw const *&0;
88const fn f ( ) {
99 if let RCZ = & raw const * & 0 { }
1010 //~^ WARN function pointers and raw pointers not derived from integers in patterns
11- //~^^ ERROR pointers cannot be reliably compared during const eval
12- //~^^^ WARN this was previously accepted by the compiler but is being phased out
11+ //~| ERROR pointers cannot be reliably compared during const eval
12+ //~| WARN this was previously accepted by the compiler but is being phased out
1313}
1414
1515fn main ( ) { }
You can’t perform that action at this time.
0 commit comments