]> git.lizzy.rs Git - rust.git/blob - tests/ui/kinds-of-primitive-impl.stderr
Rollup merge of #107576 - P1n3appl3:master, r=tmandry
[rust.git] / tests / ui / kinds-of-primitive-impl.stderr
1 error[E0390]: cannot define inherent `impl` for primitive types
2   --> $DIR/kinds-of-primitive-impl.rs:1:6
3    |
4 LL | impl u8 {
5    |      ^^
6    |
7    = help: consider using an extension trait instead
8
9 error[E0390]: cannot define inherent `impl` for primitive types
10   --> $DIR/kinds-of-primitive-impl.rs:6:6
11    |
12 LL | impl str {
13    |      ^^^
14    |
15    = help: consider using an extension trait instead
16
17 error[E0390]: cannot define inherent `impl` for primitive types
18   --> $DIR/kinds-of-primitive-impl.rs:12:6
19    |
20 LL | impl char {
21    |      ^^^^
22    |
23    = help: consider using an extension trait instead
24
25 error[E0390]: cannot define inherent `impl` for primitive types
26   --> $DIR/kinds-of-primitive-impl.rs:21:6
27    |
28 LL | impl &MyType {
29    |      ^^^^^^^
30    |
31    = help: consider using an extension trait instead
32    = note: you could also try moving the reference to uses of `MyType` (such as `self`) within the implementation
33
34 error: aborting due to 4 previous errors
35
36 For more information about this error, try `rustc --explain E0390`.