fork/rust

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

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

master
935 B28 linesraw
1error[E0401]: can't use generic parameters from outer item
2  --> $DIR/issue-3214.rs:3:12
3   |
4LL | fn foo<T>() {
5   |        - type parameter from outer item
6LL |     struct Foo {
7   |               - help: try introducing a local generic parameter here: `<T>`
8LL |         x: T,
9   |            ^ use of generic parameter from outer item
10
11error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied
12  --> $DIR/issue-3214.rs:6:22
13   |
14LL |     impl<T> Drop for Foo<T> {
15   |                      ^^^--- help: remove these generics
16   |                      |
17   |                      expected 0 generic arguments
18   |
19note: struct defined here, with 0 generic parameters
20  --> $DIR/issue-3214.rs:2:12
21   |
22LL |     struct Foo {
23   |            ^^^
24
25error: aborting due to 2 previous errors
26
27Some errors have detailed explanations: E0107, E0401.
28For more information about an error, try `rustc --explain E0107`.