Skip to content

Commit 9aea37d

Browse files
committed
address review feedback
1 parent 368bfb2 commit 9aea37d

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

Diff for: tests/ui/nll/ice-106874.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ use std::rc::Rc;
77
pub 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

2121
trait X {}

Diff for: tests/ui/raw-ref-op/const-eval-compare-ice-105047.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const RCZ: *const i32 = &raw const *&0;
88
const 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

1515
fn main() {}

0 commit comments

Comments
 (0)