blob: a419f3a2acf1ce40399589e52b6d75096e11c9ea [file] [log] [blame] [edit]
//@ revisions: pre2021 edition2021
//@[pre2021] edition:2015..2021
//@[edition2021] edition:2021
#![allow(warnings)]
fn ice() -> impl AsRef<Fn(&())> {
//[pre2021]~^ ERROR: the trait bound `(): AsRef<(dyn for<'a> Fn(&'a ()) + 'static)>` is not satisfied [E0277]
//[edition2021]~^^ ERROR: expected a type, found a trait [E0782]
//[edition2021]~| ERROR: expected a type, found a trait [E0782]
todo!()
}
fn main() {}