Skip to content

Commit 88100ba

Browse files
clean up E0404 explanation
1 parent 823ff8c commit 88100ba

File tree

1 file changed

+5
-5
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+5
-5
lines changed

src/librustc_error_codes/error_codes/E0404.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
You tried to use something which is not a trait in a trait position, such as
2-
a bound or `impl`.
1+
A type that is not a trait was used in a trait position, such as a bound
2+
or `impl`.
33

44
Erroneous code example:
55

@@ -18,8 +18,8 @@ struct Foo;
1818
fn bar<T: Foo>(t: T) {} // error: `Foo` is not a trait
1919
```
2020

21-
Please verify that you didn't misspell the trait's name or otherwise use the
22-
wrong identifier. Example:
21+
Please verify that the trait's name was not misspelled or that the right
22+
identifier was used. Example:
2323

2424
```
2525
trait Foo {
@@ -32,7 +32,7 @@ impl Foo for Bar { // ok!
3232
}
3333
```
3434

35-
or
35+
or:
3636

3737
```
3838
trait Foo {

0 commit comments

Comments
 (0)