fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// run-rustfix 2 3#![allow(unused)] 4 5struct Foo<T>(T); 6 7impl<T> Foo<T> { 8 fn test() -> i32 { 1 } 9} 10 11fn main() { 12 let x = Box::new(Foo(1i32)); 13 Foo::<i32>::test(); 14 //~^ ERROR no method named `test` found for struct `Box<Foo<i32>>` in the current scope 15}