2016-03-08 17:23:52 -06:00
|
|
|
// Check that writing an overlapping impl is not allow unless specialization is ungated.
|
|
|
|
|
2017-01-10 19:25:44 -06:00
|
|
|
// gate-test-specialization
|
|
|
|
|
2015-12-30 17:25:31 -06:00
|
|
|
trait Foo {
|
|
|
|
fn foo(&self);
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<T> Foo for T {
|
|
|
|
fn foo(&self) {}
|
|
|
|
}
|
|
|
|
|
2016-03-08 17:23:52 -06:00
|
|
|
impl Foo for u8 { //~ ERROR E0119
|
2015-12-30 17:25:31 -06:00
|
|
|
fn foo(&self) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|