未验证 提交 6b6c470b 编写于 作者: D Dylan DPC 提交者: GitHub

Rollup merge of #69887 - GuillaumeGomez:cleanup-e0404, r=Dylan-DPC

clean up E0404 explanation

r? @Dylan-DPC
You tried to use something which is not a trait in a trait position, such as
a bound or `impl`.
A type that is not a trait was used in a trait position, such as a bound
or `impl`.
Erroneous code example:
......@@ -18,8 +18,8 @@ struct Foo;
fn bar<T: Foo>(t: T) {} // error: `Foo` is not a trait
```
Please verify that you didn't misspell the trait's name or otherwise use the
wrong identifier. Example:
Please verify that the trait's name was not misspelled or that the right
identifier was used. Example:
```
trait Foo {
......@@ -32,7 +32,7 @@ impl Foo for Bar { // ok!
}
```
or
or:
```
trait Foo {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册