fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
644 B19 linesraw
1error[E0574]: expected struct, variant or union type, found type parameter `T`
2  --> $DIR/lexical-scopes.rs:3:13
3   |
4LL |     let t = T { i: 0 };
5   |             ^ not a struct, variant or union type
6help: possible better candidate is found in another module, you can import it into scope
7   |
8LL | use T;
9   |
10
11error[E0599]: no function or associated item named `f` found for type `Foo` in the current scope
12  --> $DIR/lexical-scopes.rs:10:10
13   |
14LL |     Foo::f();
15   |          ^ function or associated item not found in `Foo`
16
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0599`.