rust/tests/ui/specialization/specialization-feature-gate...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
268 B
Rust
Raw Normal View History

2016-03-09 07:23:52 +08:00
// Check that writing an overlapping impl is not allow unless specialization is ungated.
// gate-test-specialization
trait Foo {
fn foo(&self);
}
impl<T> Foo for T {
fn foo(&self) {}
}
2016-03-09 07:23:52 +08:00
impl Foo for u8 { //~ ERROR E0119
fn foo(&self) {}
}
fn main() {}