]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-5153.rs
Rollup merge of #57859 - GuillaumeGomez:fix-background, r=QuietMisdreavus
[rust.git] / src / test / ui / issues / issue-5153.rs
1 trait Foo {
2     fn foo(self: Box<Self>);
3 }
4
5 impl Foo for isize {
6     fn foo(self: Box<isize>) { }
7 }
8
9 fn main() {
10     (&5isize as &Foo).foo();
11     //~^ ERROR: no method named `foo` found for type `&dyn Foo` in the current scope
12 }