blob: a7b48825d7c0281016a0e292dc65529844446d9b [file] [log] [blame]
// aux-build:coherence_orphan_lib.rs
#![feature(optin_builtin_traits)]
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 { }
impl !Send for Vec<isize> { }
//~^ ERROR E0117
fn main() { }