rust/src/test/ui/single-primitive-inherent-impl.rs
2018-12-25 21:08:33 -07:00

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
}