blob: 75c62feec32d0f992df29d5771456170eefa10d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#![crate_type = "lib"]
#![feature(lang_items)]
#![no_std]
// OK
#[lang = "str_alloc"]
impl str {}
impl str {
//~^ error: only a single inherent implementation marked with `#[lang = "str"]` is allowed for the `str` primitive
}
|