File tree 3 files changed +5
-3
lines changed
compiler/rustc_ty_utils/src
tests/ui/type-alias-impl-trait
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ pub struct DuplicateArg<'tcx> {
113
113
}
114
114
115
115
#[ derive( Diagnostic ) ]
116
- #[ diag( ty_utils_impl_trait_not_param) ]
116
+ #[ diag( ty_utils_impl_trait_not_param, code = "E0792" ) ]
117
117
pub struct NotParam < ' tcx > {
118
118
pub arg : GenericArg < ' tcx > ,
119
119
#[ primary_span]
Original file line number Diff line number Diff line change 1
- error: non-defining opaque type use in defining scope
1
+ error[E0792] : non-defining opaque type use in defining scope
2
2
--> $DIR/multi-error.rs:17:17
3
3
|
4
4
LL | fn foo() -> (Self::Bar<u32>, Self::Baz) {
@@ -12,3 +12,4 @@ LL | type Bar<T> = impl Sized;
12
12
13
13
error: aborting due to previous error
14
14
15
+ For more information about this error, try `rustc --explain E0792`.
Original file line number Diff line number Diff line change 1
- error: non-defining opaque type use in defining scope
1
+ error[E0792] : non-defining opaque type use in defining scope
2
2
--> $DIR/non-defining-method.rs:16:17
3
3
|
4
4
LL | fn foo() -> Self::Bar<u32> {}
@@ -12,3 +12,4 @@ LL | type Bar<T> = impl Sized;
12
12
13
13
error: aborting due to previous error
14
14
15
+ For more information about this error, try `rustc --explain E0792`.
You can’t perform that action at this time.
0 commit comments