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