]> git.lizzy.rs Git - rust.git/blob - src/test/ui/specialization/specialization-feature-gate-default.rs
Rollup merge of #101388 - compiler-errors:issue-101376, r=fee1-dead
[rust.git] / src / test / ui / specialization / specialization-feature-gate-default.rs
1 // Check that specialization must be ungated to use the `default` keyword
2
3 // gate-test-specialization
4
5 trait Foo {
6     fn foo(&self);
7 }
8
9 impl<T> Foo for T {
10     default fn foo(&self) {} //~ ERROR specialization is unstable
11 }
12
13 fn main() {}