//@ run-rustfix #![allow(unused)] struct Foo(T); impl Foo { fn test() -> i32 { 1 } } fn main() { let x = Box::new(Foo(1i32)); Foo::::test(); //~^ ERROR no method named `test` found for struct `Box>` in the current scope }