]> git.lizzy.rs Git - rust.git/blob - src/test/ui/kinds-of-primitive-impl.rs
Auto merge of #79780 - camelid:use-summary_opts, r=GuillaumeGomez
[rust.git] / src / test / ui / kinds-of-primitive-impl.rs
1 // ignore-tidy-linelength
2
3
4 impl u8 {
5 //~^ error: only a single inherent implementation marked with `#[lang = "u8"]` is allowed for the `u8` primitive
6     pub const B: u8 = 0;
7 }
8
9 impl str {
10 //~^ error: only a single inherent implementation marked with `#[lang = "str"]` is allowed for the `str` primitive
11     fn foo() {}
12     fn bar(self) {}
13 }
14
15 impl char {
16 //~^ error: only a single inherent implementation marked with `#[lang = "char"]` is allowed for the `char` primitive
17     pub const B: u8 = 0;
18     pub const C: u8 = 0;
19     fn foo() {}
20     fn bar(self) {}
21 }
22
23 fn main() {}