os-rust/tests/ui/coherence/coherence-orphan.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
461 B
Rust
Raw Normal View History

//@ aux-build:coherence_orphan_lib.rs
#![feature(negative_impls)]
2015-01-13 20:21:19 +01:00
extern crate coherence_orphan_lib as lib;
use lib::TheTrait;
struct TheType;
2024-02-19 17:39:25 -03:00
impl TheTrait<usize> for isize {}
//~^ ERROR E0117
//~| ERROR not all trait items implemented
2024-02-19 17:39:25 -03:00
impl TheTrait<TheType> for isize {}
//~^ ERROR not all trait items implemented
2024-02-19 17:39:25 -03:00
impl TheTrait<isize> for TheType {}
//~^ ERROR not all trait items implemented
2024-02-19 17:39:25 -03:00
impl !Send for Vec<isize> {} //~ ERROR E0117
2015-01-13 20:21:19 +01:00
2024-02-19 17:39:25 -03:00
fn main() {}