]> git.lizzy.rs Git - rust.git/blob - src/test/ui/kinds-of-primitive-impl.stderr
Auto merge of #81507 - weiznich:add_diesel_to_cargo_test, r=Mark-Simulacrum
[rust.git] / src / test / ui / kinds-of-primitive-impl.stderr
1 error[E0390]: only a single inherent implementation marked with `#[lang = "u8"]` is allowed for the `u8` primitive
2   --> $DIR/kinds-of-primitive-impl.rs:4:1
3    |
4 LL | / impl u8 {
5 LL | |
6 LL | |     pub const B: u8 = 0;
7 LL | | }
8    | |_^
9    |
10    = help: consider using a trait to implement this constant
11
12 error[E0390]: only a single inherent implementation marked with `#[lang = "str"]` is allowed for the `str` primitive
13   --> $DIR/kinds-of-primitive-impl.rs:9:1
14    |
15 LL | / impl str {
16 LL | |
17 LL | |     fn foo() {}
18 LL | |     fn bar(self) {}
19 LL | | }
20    | |_^
21    |
22    = help: consider using a trait to implement these methods
23
24 error[E0390]: only a single inherent implementation marked with `#[lang = "char"]` is allowed for the `char` primitive
25   --> $DIR/kinds-of-primitive-impl.rs:15:1
26    |
27 LL | / impl char {
28 LL | |
29 LL | |     pub const B: u8 = 0;
30 LL | |     pub const C: u8 = 0;
31 LL | |     fn foo() {}
32 LL | |     fn bar(self) {}
33 LL | | }
34    | |_^
35    |
36    = help: consider using a trait to implement these associated items
37
38 error: aborting due to 3 previous errors
39
40 For more information about this error, try `rustc --explain E0390`.