rust/src/test/ui/single-primitive-inherent-i...

14 lines
255 B
Rust

// ignore-tidy-linelength
#![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
}