summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/suggest-assoc-fn-call-deref.rs
blob: 186901f75a84ba992527e5026ca23624991c51dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// run-rustfix

#![allow(unused)]

struct Foo<T>(T);

impl<T> Foo<T> {
    fn test() -> i32 { 1 }
}

fn main() {
    let x = Box::new(Foo(1i32));
    x.test();
    //~^ ERROR no method named `test` found for struct `Box<Foo<i32>>` in the current scope
}