mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
23 lines
461 B
Rust
23 lines
461 B
Rust
//@ aux-build:coherence_orphan_lib.rs
|
|
#![feature(negative_impls)]
|
|
|
|
extern crate coherence_orphan_lib as lib;
|
|
|
|
use lib::TheTrait;
|
|
|
|
struct TheType;
|
|
|
|
impl TheTrait<usize> for isize {}
|
|
//~^ ERROR E0117
|
|
//~| ERROR not all trait items implemented
|
|
|
|
impl TheTrait<TheType> for isize {}
|
|
//~^ ERROR not all trait items implemented
|
|
|
|
impl TheTrait<isize> for TheType {}
|
|
//~^ ERROR not all trait items implemented
|
|
|
|
impl !Send for Vec<isize> {} //~ ERROR E0117
|
|
|
|
fn main() {}
|