rollup merge of #20594: nikomatsakis/orphan-ordered
Conflicts: src/libsyntax/feature_gate.rs
This commit is contained in:
commit
cf8a11e98b
18 changed files with 81 additions and 54 deletions
|
|
@ -14,6 +14,6 @@ extern crate "coherence-lib" as lib;
|
|||
use lib::Remote;
|
||||
|
||||
impl<T> Remote for int { }
|
||||
//~^ ERROR cannot provide an extension implementation
|
||||
//~^ ERROR E0117
|
||||
|
||||
fn main() { }
|
||||
|
|
|
|||
|
|
@ -15,6 +15,6 @@ use lib::Remote1;
|
|||
|
||||
pub struct BigInt;
|
||||
|
||||
impl Remote1<BigInt> for int { }
|
||||
impl Remote1<BigInt> for int { } //~ ERROR E0117
|
||||
|
||||
fn main() { }
|
||||
|
|
@ -16,6 +16,6 @@ use lib::Remote1;
|
|||
pub struct BigInt;
|
||||
|
||||
impl<T> Remote1<BigInt> for T { }
|
||||
//~^ ERROR type parameter `T` must also appear
|
||||
//~^ ERROR type parameter `T` is not constrained
|
||||
|
||||
fn main() { }
|
||||
|
|
|
|||
|
|
@ -15,6 +15,6 @@ use lib::Remote1;
|
|||
|
||||
pub struct BigInt;
|
||||
|
||||
impl Remote1<BigInt> for Vec<int> { }
|
||||
impl Remote1<BigInt> for Vec<int> { } //~ ERROR E0117
|
||||
|
||||
fn main() { }
|
||||
|
|
@ -16,7 +16,7 @@ extern crate trait_impl_conflict;
|
|||
use trait_impl_conflict::Foo;
|
||||
|
||||
impl<A> Foo for A {
|
||||
//~^ ERROR E0117
|
||||
//~^ ERROR type parameter `A` is not constrained
|
||||
//~^^ ERROR E0119
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,6 @@
|
|||
extern crate "coherence-lib" as lib;
|
||||
use lib::Remote;
|
||||
|
||||
impl<T> Remote for T { } //~ ERROR E0117
|
||||
impl<T> Remote for T { } //~ ERROR type parameter `T` is not constrained
|
||||
|
||||
fn main() { }
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ struct TheType;
|
|||
|
||||
impl TheTrait<uint> for int { } //~ ERROR E0117
|
||||
|
||||
impl TheTrait<TheType> for int { }
|
||||
impl TheTrait<TheType> for int { } //~ ERROR E0117
|
||||
|
||||
impl TheTrait<int> for TheType { }
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,6 @@ use lib::Remote;
|
|||
struct Foo;
|
||||
|
||||
impl<T> Remote for lib::Pair<T,Foo> { }
|
||||
//~^ ERROR type parameter `T` must also appear
|
||||
//~^ ERROR type parameter `T` is not constrained
|
||||
|
||||
fn main() { }
|
||||
|
|
|
|||
|
|
@ -16,6 +16,6 @@ use lib::{Remote, Pair};
|
|||
struct Local<T>(T);
|
||||
|
||||
impl<T,U> Remote for Pair<T,Local<U>> { }
|
||||
//~^ ERROR type parameter `T` must also appear
|
||||
//~^ ERROR type parameter `T` is not constrained
|
||||
|
||||
fn main() { }
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
impl Drop for int {
|
||||
//~^ ERROR the Drop trait may only be implemented on structures
|
||||
//~^^ ERROR cannot provide an extension implementation
|
||||
//~^^ ERROR E0117
|
||||
fn drop(&mut self) {
|
||||
println!("kaboom");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,5 @@ use lib::Remote1;
|
|||
struct Foo<T>(T);
|
||||
|
||||
impl<T,U> Remote1<U> for Foo<T> { }
|
||||
//~^ ERROR type parameter `U` must also appear
|
||||
|
||||
fn main() { }
|
||||
Loading…
Add table
Add a link
Reference in a new issue