]> git.lizzy.rs Git - rust.git/blob - tests/ui/specialization/specialization-feature-gate-overlap.rs
Rollup merge of #106638 - RalfJung:realstd, r=thomcc
[rust.git] / tests / ui / specialization / specialization-feature-gate-overlap.rs
1 // Check that writing an overlapping impl is not allow unless specialization is ungated.
2
3 // gate-test-specialization
4
5 trait Foo {
6     fn foo(&self);
7 }
8
9 impl<T> Foo for T {
10     fn foo(&self) {}
11 }
12
13 impl Foo for u8 { //~ ERROR E0119
14     fn foo(&self) {}
15 }
16
17 fn main() {}