]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/issue-87558.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / traits / issue-87558.rs
1 struct ErrorKind;
2 struct Error(ErrorKind);
3 impl Fn(&isize) for Error {
4     //~^ ERROR manual implementations of `Fn` are experimental
5     //~| ERROR associated type bindings are not allowed here
6     fn from() {} //~ ERROR method `from` is not a member of trait `Fn`
7 }
8
9 fn main() {}