]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-3214.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-3214.stderr
1 error[E0401]: can't use type parameters from outer function
2   --> $DIR/issue-3214.rs:13:12
3    |
4 LL | fn foo<T>() {
5    |    --- - type variable from outer function
6    |    |
7    |    try adding a local type parameter in this method instead
8 LL |     struct foo {
9 LL |         x: T, //~ ERROR can't use type parameters from outer function
10    |            ^ use of type variable from outer function
11
12 error[E0107]: wrong number of type arguments: expected 0, found 1
13   --> $DIR/issue-3214.rs:16:26
14    |
15 LL |     impl<T> Drop for foo<T> {
16    |                          ^ unexpected type argument
17
18 error: aborting due to 2 previous errors
19
20 Some errors occurred: E0107, E0401.
21 For more information about an error, try `rustc --explain E0107`.