mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
address review feedback
This commit is contained in:
parent
368bfb2c10
commit
9aea37d3c1
@ -7,15 +7,15 @@ use std::rc::Rc;
|
||||
pub fn func<V, F: Fn(&mut V)>(f: F) -> A<impl X> {
|
||||
A(B(C::new(D::new(move |st| f(st)))))
|
||||
//~^ ERROR implementation of `FnOnce` is not general enough
|
||||
//~^^ ERROR implementation of `Fn` is not general enough
|
||||
//~^^^ ERROR implementation of `FnOnce` is not general enough
|
||||
//~^^^^ ERROR implementation of `FnOnce` is not general enough
|
||||
//~^^^^^ ERROR implementation of `Fn` is not general enough
|
||||
//~^^^^^^ ERROR implementation of `FnOnce` is not general enough
|
||||
//~^^^^^^^ ERROR implementation of `Fn` is not general enough
|
||||
//~^^^^^^^^ ERROR implementation of `FnOnce` is not general enough
|
||||
//~^^^^^^^^^ ERROR higher-ranked subtype error
|
||||
//~^^^^^^^^^^ ERROR higher-ranked subtype error
|
||||
//~| ERROR implementation of `Fn` is not general enough
|
||||
//~| ERROR implementation of `FnOnce` is not general enough
|
||||
//~| ERROR implementation of `FnOnce` is not general enough
|
||||
//~| ERROR implementation of `Fn` is not general enough
|
||||
//~| ERROR implementation of `FnOnce` is not general enough
|
||||
//~| ERROR implementation of `Fn` is not general enough
|
||||
//~| ERROR implementation of `FnOnce` is not general enough
|
||||
//~| ERROR higher-ranked subtype error
|
||||
//~| ERROR higher-ranked subtype error
|
||||
}
|
||||
|
||||
trait X {}
|
||||
|
@ -8,8 +8,8 @@ const RCZ: *const i32 = &raw const *&0;
|
||||
const fn f() {
|
||||
if let RCZ = &raw const *&0 { }
|
||||
//~^ WARN function pointers and raw pointers not derived from integers in patterns
|
||||
//~^^ ERROR pointers cannot be reliably compared during const eval
|
||||
//~^^^ WARN this was previously accepted by the compiler but is being phased out
|
||||
//~| ERROR pointers cannot be reliably compared during const eval
|
||||
//~| WARN this was previously accepted by the compiler but is being phased out
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
|
Loading…
Reference in New Issue
Block a user