mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
15 lines
647 B
Rust
15 lines
647 B
Rust
struct ErrorKind;
|
|
struct Error(ErrorKind);
|
|
impl Fn(&isize) for Error {
|
|
//~^ ERROR manual implementations of `Fn` are experimental [E0183]
|
|
//~^^ ERROR associated type bindings are not allowed here [E0229]
|
|
//~| ERROR not all trait items implemented
|
|
//~| ERROR expected a `FnMut(&isize)` closure, found `Error`
|
|
fn foo<const N: usize>(&self) -> Self::B<{ N }>;
|
|
//~^ ERROR associated function in `impl` without body
|
|
//~^^ ERROR method `foo` is not a member of trait `Fn` [E0407]
|
|
//~^^^ ERROR associated type `B` not found for `Self` [E0220]
|
|
//~| ERROR associated type `B` not found for `Self` [E0220]
|
|
}
|
|
fn main() {}
|