diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2017-12-02 22:15:03 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-01-14 18:10:05 +0300 |
| commit | d19e4c4a8507da7e35d0de2b196c48e6621de1f9 (patch) | |
| tree | df1852ce3a472b0d835c02f9686bbde9e21cb9e9 /src/test/parse-fail/trait-bounds-not-on-impl.rs | |
| parent | 48ab4cde5460f9f7c57249e4e62ad569dc843dd8 (diff) | |
| download | rust-d19e4c4a8507da7e35d0de2b196c48e6621de1f9.tar.gz rust-d19e4c4a8507da7e35d0de2b196c48e6621de1f9.zip | |
syntax: Rewrite parsing of impls
Properly parse impls for the never type `!` Recover from missing `for` in `impl Trait for Type` Prohibit inherent default impls and default impls of auto traits Change wording in more diagnostics to use "auto traits" Some minor code cleanups in the parser
Diffstat (limited to 'src/test/parse-fail/trait-bounds-not-on-impl.rs')
| -rw-r--r-- | src/test/parse-fail/trait-bounds-not-on-impl.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/parse-fail/trait-bounds-not-on-impl.rs b/src/test/parse-fail/trait-bounds-not-on-impl.rs index b7dcc8a8b3b..7cd2774fe39 100644 --- a/src/test/parse-fail/trait-bounds-not-on-impl.rs +++ b/src/test/parse-fail/trait-bounds-not-on-impl.rs @@ -15,9 +15,7 @@ trait Foo { struct Bar; -impl Foo + Owned for Bar { -//~^ ERROR not a trait -//~^^ ERROR expected one of `where` or `{`, found `Bar` +impl Foo + Owned for Bar { //~ ERROR expected a trait, found type } fn main() { } |
