2022-06-26 22:10:10 +09:00
|
|
|
struct ErrorKind;
|
|
|
|
struct Error(ErrorKind);
|
|
|
|
impl Fn(&isize) for Error {
|
|
|
|
//~^ ERROR manual implementations of `Fn` are experimental
|
2024-05-27 23:53:46 +02:00
|
|
|
//~| ERROR associated item constraints are not allowed here
|
2023-10-31 13:45:26 +00:00
|
|
|
//~| ERROR closure, found `Error`
|
|
|
|
//~| ERROR not all trait items implemented, missing: `call`
|
2022-06-26 22:10:10 +09:00
|
|
|
fn from() {} //~ ERROR method `from` is not a member of trait `Fn`
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|