]> git.lizzy.rs Git - rust.git/blob - src/test/ui/single-primitive-inherent-impl.rs
Rollup merge of #89468 - FabianWolff:issue-89358, r=jackh726
[rust.git] / src / test / ui / single-primitive-inherent-impl.rs
1 #![crate_type = "lib"]
2 #![feature(lang_items)]
3 #![no_std]
4
5 // OK
6 #[lang = "str_alloc"]
7 impl str {}
8
9 impl str {
10 //~^ error: only a single inherent implementation marked with `#[lang = "str"]` is allowed for the `str` primitive
11 }