File tree 2 files changed +11
-11
lines changed
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;
7
7
pub fn func < V , F : Fn ( & mut V ) > ( f : F ) -> A < impl X > {
8
8
A ( B ( C :: new ( D :: new ( move |st| f ( st) ) ) ) )
9
9
//~^ 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
19
19
}
20
20
21
21
trait X { }
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ const RCZ: *const i32 = &raw const *&0;
8
8
const fn f ( ) {
9
9
if let RCZ = & raw const * & 0 { }
10
10
//~^ 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
13
13
}
14
14
15
15
fn main ( ) { }
You can’t perform that action at this time.
0 commit comments