提交 6e70678f 编写于 作者: M Michael Howell

Change wording to less jaron-y "non-auto trait"

Co-authored-by: NVadim Petrochenkov <vadim.petrochenkov@gmail.com>
上级 435cdd0f
...@@ -67,7 +67,7 @@ fn visit_item(&mut self, item: &hir::Item<'_>) { ...@@ -67,7 +67,7 @@ fn visit_item(&mut self, item: &hir::Item<'_>) {
E0785, E0785,
"cannot define inherent `impl` for a dyn auto trait" "cannot define inherent `impl` for a dyn auto trait"
) )
.span_label(ty.span, "impl requires a principal trait") .span_label(ty.span, "impl requires at least one non-auto trait")
.note("define and implement a new trait or type instead") .note("define and implement a new trait or type instead")
.emit(); .emit();
} }
......
...@@ -2,7 +2,7 @@ error[E0785]: cannot define inherent `impl` for a dyn auto trait ...@@ -2,7 +2,7 @@ error[E0785]: cannot define inherent `impl` for a dyn auto trait
--> $DIR/issue-85026.rs:5:6 --> $DIR/issue-85026.rs:5:6
| |
LL | impl dyn AutoTrait {} LL | impl dyn AutoTrait {}
| ^^^^^^^^^^^^^ impl requires a principal trait | ^^^^^^^^^^^^^ impl requires at least one non-auto trait
| |
= note: define and implement a new trait or type instead = note: define and implement a new trait or type instead
...@@ -10,7 +10,7 @@ error[E0785]: cannot define inherent `impl` for a dyn auto trait ...@@ -10,7 +10,7 @@ error[E0785]: cannot define inherent `impl` for a dyn auto trait
--> $DIR/issue-85026.rs:8:6 --> $DIR/issue-85026.rs:8:6
| |
LL | impl dyn Unpin {} LL | impl dyn Unpin {}
| ^^^^^^^^^ impl requires a principal trait | ^^^^^^^^^ impl requires at least one non-auto trait
| |
= note: define and implement a new trait or type instead = note: define and implement a new trait or type instead
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册