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

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

22 lines
391 B
Rust
Raw Normal View History

// aux-build:coherence_orphan_lib.rs
#![feature(negative_impls)]
2015-01-13 13:21:19 -06:00
extern crate coherence_orphan_lib as lib;
use lib::TheTrait;
struct TheType;
impl TheTrait<usize> for isize { }
//~^ ERROR E0117
impl TheTrait<TheType> for isize { }
impl TheTrait<isize> for TheType { }
2023-03-06 07:05:35 -06:00
impl !Send for Vec<isize> { } //~ ERROR E0117
//~^ WARNING
//~| WARNING this will change its meaning
2015-01-13 13:21:19 -06:00
fn main() { }