summaryrefslogtreecommitdiffstats
path: root/tests/ui/lifetimes/issue-95023.rs
blob: 3fba8c00c572f8d35434eb914aea58d6ec5b5dcc (plain)
1
2
3
4
5
6
7
8
9
10
11
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]
    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]
}
fn main() {}