Sign in
android
/
toolchain
/
rustc
/
2f3fdfeb95384b9046ea35b3532e23c652eca660
/
.
/
src
/
test
/
ui
/
single-primitive-inherent-impl.rs
blob: 75c62feec32d0f992df29d5771456170eefa10d5 [
file
] [
log
] [
blame
]
#![
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
}