Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
traits
/
overlap-not-permitted-for-builtin-trait.rs
blob: 4106f56d64ac6c36672083611abe0b04e72c7ed9 [
file
] [
log
] [
blame
]
#![
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
()
{}