diff options
Diffstat (limited to 'src/test/ui/specialization/specialization-feature-gate-default.rs')
-rw-r--r-- | src/test/ui/specialization/specialization-feature-gate-default.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/test/ui/specialization/specialization-feature-gate-default.rs b/src/test/ui/specialization/specialization-feature-gate-default.rs deleted file mode 100644 index 8bad3ac0a..000000000 --- a/src/test/ui/specialization/specialization-feature-gate-default.rs +++ /dev/null @@ -1,13 +0,0 @@ -// Check that specialization must be ungated to use the `default` keyword - -// gate-test-specialization - -trait Foo { - fn foo(&self); -} - -impl<T> Foo for T { - default fn foo(&self) {} //~ ERROR specialization is unstable -} - -fn main() {} |