1- error[E0412 ]: cannot find type or const parameter `T` in this scope
1+ error[E0800 ]: cannot find type or const parameter `T` in this scope
22 --> $DIR/bad-params.rs:1:34
33 |
44LL | fn missing() -> impl Sized + use<T> {}
@@ -17,19 +17,19 @@ LL | fn missing_self() -> impl Sized + use<Self> {}
1717 | |
1818 | `Self` not allowed in a function
1919
20- error[E0573 ]: expected type or const parameter, found function `hello`
20+ error[E0799 ]: expected type or const parameter, found function `hello`
2121 --> $DIR/bad-params.rs:13:32
2222 |
2323LL | fn hello() -> impl Sized + use<hello> {}
2424 | ^^^^^ not a type or const parameter
2525
26- error[E0573 ]: expected type or const parameter, found local variable `x`
26+ error[E0799 ]: expected type or const parameter, found local variable `x`
2727 --> $DIR/bad-params.rs:16:35
2828 |
2929LL | fn arg(x: ()) -> impl Sized + use<x> {}
3030 | ^ not a type or const parameter
3131
32- error: `Self` can't be captured in `use<...>` precise captures list, since it is an alias
32+ error[E0799] : `Self` can't be captured in `use<...>` precise captures list, since it is an alias
3333 --> $DIR/bad-params.rs:9:48
3434 |
3535LL | impl MyType {
@@ -39,5 +39,5 @@ LL | fn self_is_not_param() -> impl Sized + use<Self> {}
3939
4040error: aborting due to 5 previous errors
4141
42- Some errors have detailed explanations: E0411, E0412, E0573 .
42+ Some errors have detailed explanations: E0411, E0799, E0800 .
4343For more information about an error, try `rustc --explain E0411`.
0 commit comments