]> git.lizzy.rs Git - rust.git/blob - src/test/ui/kinds-of-primitive-impl.rs
Merge pull request #16 from ian-h-chamberlain/feature/target-thread-local
[rust.git] / src / test / ui / kinds-of-primitive-impl.rs
1 impl u8 {
2 //~^ error: only a single inherent implementation marked with `#[lang = "u8"]` is allowed for the `u8` primitive
3     pub const B: u8 = 0;
4 }
5
6 impl str {
7 //~^ error: only a single inherent implementation marked with `#[lang = "str"]` is allowed for the `str` primitive
8     fn foo() {}
9     fn bar(self) {}
10 }
11
12 impl char {
13 //~^ error: only a single inherent implementation marked with `#[lang = "char"]` is allowed for the `char` primitive
14     pub const B: u8 = 0;
15     pub const C: u8 = 0;
16     fn foo() {}
17     fn bar(self) {}
18 }
19
20 fn main() {}