Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
7afdaf2c06c624e08c7533bf4c1e291df823aaba
/
.
/
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
}