]> git.lizzy.rs Git - rust.git/blob - src/test/ui/single-primitive-inherent-impl.rs
Auto merge of #81507 - weiznich:add_diesel_to_cargo_test, r=Mark-Simulacrum
[rust.git] / src / test / ui / single-primitive-inherent-impl.rs
1 // ignore-tidy-linelength
2
3 #![crate_type = "lib"]
4 #![feature(lang_items)]
5 #![no_std]
6
7 // OK
8 #[lang = "str_alloc"]
9 impl str {}
10
11 impl str {
12 //~^ error: only a single inherent implementation marked with `#[lang = "str"]` is allowed for the `str` primitive
13 }