about summary refs log tree commit diff
path: root/src/test/compile-fail/syntaxt-default-trait-impls.rs
diff options
context:
space:
mode:
authorleonardo.yvens <leoyvens@gmail.com>2017-12-01 10:01:23 -0200
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2018-01-13 18:48:00 +0300
commitf93183adb43cff4cc0972ce133ce077f8cae1656 (patch)
tree44375edf74c187abbe1cdde0c8d5b844b2b3196e /src/test/compile-fail/syntaxt-default-trait-impls.rs
parent9b2f8ac29eca4a42c35ce32b13231fcc1f9a3c9d (diff)
downloadrust-f93183adb43cff4cc0972ce133ce077f8cae1656.tar.gz
rust-f93183adb43cff4cc0972ce133ce077f8cae1656.zip
Remove `impl Foo for ..` in favor of `auto trait Foo`
No longer parse it.
Remove AutoTrait variant from AST and HIR.
Remove backwards compatibility lint.
Remove coherence checks, they make no sense for the new syntax.
Remove from rustdoc.
Diffstat (limited to 'src/test/compile-fail/syntaxt-default-trait-impls.rs')
-rw-r--r--src/test/compile-fail/syntaxt-default-trait-impls.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/test/compile-fail/syntaxt-default-trait-impls.rs b/src/test/compile-fail/syntaxt-default-trait-impls.rs
deleted file mode 100644
index 45303cbf700..00000000000
--- a/src/test/compile-fail/syntaxt-default-trait-impls.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-#![feature(optin_builtin_traits)]
-
-trait MyAutoImpl {}
-
-#[allow(auto_impl)]
-impl<T> MyAutoImpl for .. {}
-//~^ ERROR auto trait implementations are not allowed to have generics
-
-fn main() {}