Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
traits
/
overlap-not-permitted-for-builtin-trait.rs
blob: 4106f56d64ac6c36672083611abe0b04e72c7ed9 [
file
] [
log
] [
blame
] [
edit
]
#![
allow
(
dead_code
)]
#![
feature
(
negative_impls
)]
// Overlapping negative impls for `MyStruct` are not permitted:
struct
MyStruct
;
impl
!
Send
for
MyStruct
{}
impl
!
Send
for
MyStruct
{}
//~^ ERROR conflicting implementations of trait
fn
main
()
{}