]> git.proxmox.com Git - rustc.git/blame - src/test/compile-fail/coherence-orphan.rs
Imported Upstream version 1.3.0+dfsg1
[rustc.git] / src / test / compile-fail / coherence-orphan.rs
CommitLineData
1a4d82fc 1// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
223e47cc
LB
2// file at the top-level directory of this distribution and at
3// http://rust-lang.org/COPYRIGHT.
4//
5// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8// option. This file may not be copied, modified, or distributed
9// except according to those terms.
10
c34b1796 11// aux-build:coherence_orphan_lib.rs
223e47cc 12
85aaf69f
SL
13#![feature(optin_builtin_traits)]
14
c34b1796 15extern crate coherence_orphan_lib as lib;
1a4d82fc
JJ
16
17use lib::TheTrait;
18
19struct TheType;
20
c34b1796
AL
21impl TheTrait<usize> for isize { }
22//~^ ERROR E0117
1a4d82fc 23
85aaf69f 24impl TheTrait<TheType> for isize { }
1a4d82fc
JJ
25
26impl TheTrait<isize> for TheType { }
223e47cc 27
c34b1796
AL
28impl !Send for Vec<isize> { }
29//~^ ERROR E0117
85aaf69f 30
223e47cc 31fn main() { }