rust/tests/ui/error-codes/E0390.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
494 B
Plaintext
Raw Normal View History

2022-03-15 15:32:52 +00:00
error[E0390]: cannot define inherent `impl` for primitive types
--> $DIR/E0390.rs:5:1
2018-02-08 03:35:35 +00:00
|
2019-03-09 12:03:44 +00:00
LL | impl *mut Foo {}
| ^^^^^^^^^^^^^
2018-02-08 03:35:35 +00:00
|
2022-03-18 10:44:55 +00:00
= help: consider using an extension trait instead
2018-02-08 03:35:35 +00:00
error[E0390]: cannot define inherent `impl` for primitive types
--> $DIR/E0390.rs:7:1
|
LL | impl fn(Foo) {}
| ^^^^^^^^^^^^
|
= help: consider using an extension trait instead
error: aborting due to 2 previous errors
2018-02-08 03:35:35 +00:00
2018-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0390`.