fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
264 B15 linesraw
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}