]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/issue-95023.rs
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[rust.git] / src / test / ui / lifetimes / issue-95023.rs
1 struct ErrorKind;
2 struct Error(ErrorKind);
3 impl Fn(&isize) for Error {
4     //~^ ERROR manual implementations of `Fn` are experimental [E0183]
5     //~^^ ERROR associated type bindings are not allowed here [E0229]
6     fn foo<const N: usize>(&self) -> Self::B<{N}>;
7     //~^ ERROR associated function in `impl` without body
8     //~^^ ERROR method `foo` is not a member of trait `Fn` [E0407]
9     //~^^^ ERROR associated type `B` not found for `Self` [E0220]
10 }
11 fn main() {}