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