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 }
12