diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-07-31 21:29:01 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-07-31 21:29:01 +0000 |
| commit | d6b10beb884bf3a2379ba694bc44b933ad5164c6 (patch) | |
| tree | 452bb49a390c3e85671104b1c23ef317553bf983 /src/test/compile-fail | |
| parent | 93fd214d61749ecae05a9ff240d51fcf77ca086c (diff) | |
| download | rust-d6b10beb884bf3a2379ba694bc44b933ad5164c6.tar.gz rust-d6b10beb884bf3a2379ba694bc44b933ad5164c6.zip | |
Make "type aliases cannot be used for traits" a note instead of a span_label.
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/issue-3907.rs | 4 | ||||
| -rw-r--r-- | src/test/compile-fail/issue-5035.rs | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/test/compile-fail/issue-3907.rs b/src/test/compile-fail/issue-3907.rs index c99ff1813e0..cbc09a028c2 100644 --- a/src/test/compile-fail/issue-3907.rs +++ b/src/test/compile-fail/issue-3907.rs @@ -11,14 +11,14 @@ // aux-build:issue_3907.rs extern crate issue_3907; -type Foo = issue_3907::Foo; //~ NOTE: type aliases cannot be used for traits +type Foo = issue_3907::Foo; struct S { name: isize } impl Foo for S { //~ ERROR: `Foo` is not a trait - //~| `Foo` is not a trait + //~| NOTE: type aliases cannot be used for traits fn bar() { } } diff --git a/src/test/compile-fail/issue-5035.rs b/src/test/compile-fail/issue-5035.rs index 61080ef6096..9648d64d1fb 100644 --- a/src/test/compile-fail/issue-5035.rs +++ b/src/test/compile-fail/issue-5035.rs @@ -10,9 +10,8 @@ trait I {} type K = I; -//~^ NOTE: aliases cannot be used for traits impl K for isize {} //~ ERROR: `K` is not a trait -//~| is not a trait + //~| NOTE: aliases cannot be used for traits use ImportError; //~ ERROR unresolved impl ImportError for () {} // check that this is not an additional error (c.f. #35142) |
