File tree 2 files changed +3
-3
lines changed
compiler/rustc_typeck/src/coherence
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ impl ItemLikeVisitor<'v> for InherentCollect<'tcx> {
67
67
E0785 ,
68
68
"cannot define inherent `impl` for a dyn auto trait"
69
69
)
70
- . span_label ( ty. span , "impl requires a principal trait" )
70
+ . span_label ( ty. span , "impl requires at least one non-auto trait" )
71
71
. note ( "define and implement a new trait or type instead" )
72
72
. emit ( ) ;
73
73
}
Original file line number Diff line number Diff line change @@ -2,15 +2,15 @@ error[E0785]: cannot define inherent `impl` for a dyn auto trait
2
2
--> $DIR/issue-85026.rs:5:6
3
3
|
4
4
LL | impl dyn AutoTrait {}
5
- | ^^^^^^^^^^^^^ impl requires a principal trait
5
+ | ^^^^^^^^^^^^^ impl requires at least one non-auto trait
6
6
|
7
7
= note: define and implement a new trait or type instead
8
8
9
9
error[E0785]: cannot define inherent `impl` for a dyn auto trait
10
10
--> $DIR/issue-85026.rs:8:6
11
11
|
12
12
LL | impl dyn Unpin {}
13
- | ^^^^^^^^^ impl requires a principal trait
13
+ | ^^^^^^^^^ impl requires at least one non-auto trait
14
14
|
15
15
= note: define and implement a new trait or type instead
16
16
You can’t perform that action at this time.
0 commit comments