1
1
error[E0412]: cannot find type `T` in this scope
2
- --> $DIR/bad-params.rs:4 :34
2
+ --> $DIR/bad-params.rs:3 :34
3
3
|
4
4
LL | fn missing() -> impl Sized + use<T> {}
5
5
| ^ not found in this scope
@@ -10,37 +10,28 @@ LL | fn missing<T>() -> impl Sized + use<T> {}
10
10
| +++
11
11
12
12
error[E0411]: cannot find type `Self` in this scope
13
- --> $DIR/bad-params.rs:7 :39
13
+ --> $DIR/bad-params.rs:6 :39
14
14
|
15
15
LL | fn missing_self() -> impl Sized + use<Self> {}
16
16
| ------------ ^^^^ `Self` is only available in impls, traits, and type definitions
17
17
| |
18
18
| `Self` not allowed in a function
19
19
20
- warning: the feature `precise_capturing` is incomplete and may not be safe to use and/or cause compiler crashes
21
- --> $DIR/bad-params.rs:1:12
22
- |
23
- LL | #![feature(precise_capturing)]
24
- | ^^^^^^^^^^^^^^^^^
25
- |
26
- = note: see issue #123432 <https://github.com/rust-lang/rust/issues/123432> for more information
27
- = note: `#[warn(incomplete_features)]` on by default
28
-
29
20
error: `Self` can't be captured in `use<...>` precise captures list, since it is an alias
30
- --> $DIR/bad-params.rs:12 :48
21
+ --> $DIR/bad-params.rs:11 :48
31
22
|
32
23
LL | impl MyType {
33
24
| ----------- `Self` is not a generic argument, but an alias to the type of the implementation
34
25
LL | fn self_is_not_param() -> impl Sized + use<Self> {}
35
26
| ^^^^
36
27
37
28
error: expected type or const parameter in `use<...>` precise captures list, found function
38
- --> $DIR/bad-params.rs:16 :32
29
+ --> $DIR/bad-params.rs:15 :32
39
30
|
40
31
LL | fn hello() -> impl Sized + use<hello> {}
41
32
| ^^^^^
42
33
43
- error: aborting due to 4 previous errors; 1 warning emitted
34
+ error: aborting due to 4 previous errors
44
35
45
36
Some errors have detailed explanations: E0411, E0412.
46
37
For more information about an error, try `rustc --explain E0411`.
0 commit comments