summary refs log tree commit diff
path: root/src/test/ui/single-primitive-inherent-impl.rs
blob: baa23396c1624b4588b23f191ec2d50e41332ff4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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
}