diff options
| author | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2017-05-10 13:19:29 +0200 |
|---|---|---|
| committer | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2017-05-10 13:20:27 +0200 |
| commit | e2f781c7ead3a9fe69020189decc6c3eebf6f25c (patch) | |
| tree | 8a94ecdac7c2981d39e111f756541bfc4d51787a /src/test | |
| parent | 67d762d896c8748009d1843ebf9e2e0760ed33a0 (diff) | |
Example usage of multiple suggestions
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/resolve/enums-are-namespaced-xc.stderr | 12 | ||||
| -rw-r--r-- | src/test/ui/resolve/issue-16058.stderr | 8 | ||||
| -rw-r--r-- | src/test/ui/resolve/issue-17518.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/resolve/issue-21221-1.stderr | 24 | ||||
| -rw-r--r-- | src/test/ui/resolve/issue-21221-2.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/resolve/issue-21221-3.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/resolve/issue-21221-4.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/resolve/issue-3907.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/resolve/privacy-struct-ctor.stderr | 12 | ||||
| -rw-r--r-- | src/test/ui/span/issue-35987.stderr | 4 |
10 files changed, 40 insertions, 40 deletions
diff --git a/src/test/ui/resolve/enums-are-namespaced-xc.stderr b/src/test/ui/resolve/enums-are-namespaced-xc.stderr index dd04c5ce356..17c5d5d15d4 100644 --- a/src/test/ui/resolve/enums-are-namespaced-xc.stderr +++ b/src/test/ui/resolve/enums-are-namespaced-xc.stderr @@ -4,8 +4,8 @@ error[E0425]: cannot find value `A` in module `namespaced_enums` 15 | let _ = namespaced_enums::A; | ^ not found in `namespaced_enums` | - = help: possible candidate is found in another module, you can import it into scope: - `use namespaced_enums::Foo::A;` +help: possible candidate is found in another module, you can import it into scope + | use namespaced_enums::Foo::A; error[E0425]: cannot find function `B` in module `namespaced_enums` --> $DIR/enums-are-namespaced-xc.rs:18:31 @@ -13,8 +13,8 @@ error[E0425]: cannot find function `B` in module `namespaced_enums` 18 | let _ = namespaced_enums::B(10); | ^ not found in `namespaced_enums` | - = help: possible candidate is found in another module, you can import it into scope: - `use namespaced_enums::Foo::B;` +help: possible candidate is found in another module, you can import it into scope + | use namespaced_enums::Foo::B; error[E0422]: cannot find struct, variant or union type `C` in module `namespaced_enums` --> $DIR/enums-are-namespaced-xc.rs:21:31 @@ -22,8 +22,8 @@ error[E0422]: cannot find struct, variant or union type `C` in module `namespace 21 | let _ = namespaced_enums::C { a: 10 }; | ^ not found in `namespaced_enums` | - = help: possible candidate is found in another module, you can import it into scope: - `use namespaced_enums::Foo::C;` +help: possible candidate is found in another module, you can import it into scope + | use namespaced_enums::Foo::C; error: aborting due to 3 previous errors diff --git a/src/test/ui/resolve/issue-16058.stderr b/src/test/ui/resolve/issue-16058.stderr index 69c48cc1f32..63d2ce10914 100644 --- a/src/test/ui/resolve/issue-16058.stderr +++ b/src/test/ui/resolve/issue-16058.stderr @@ -4,10 +4,10 @@ error[E0574]: expected struct, variant or union type, found enum `Result` 19 | Result { | ^^^^^^ not a struct, variant or union type | - = help: possible better candidates are found in other modules, you can import them into scope: - `use std::fmt::Result;` - `use std::io::Result;` - `use std::thread::Result;` +help: possible better candidates are found in other modules, you can import them into scope + | use std::fmt::Result; + | use std::io::Result; + | use std::thread::Result; error: aborting due to previous error diff --git a/src/test/ui/resolve/issue-17518.stderr b/src/test/ui/resolve/issue-17518.stderr index ea6841e6009..c0438abfe43 100644 --- a/src/test/ui/resolve/issue-17518.stderr +++ b/src/test/ui/resolve/issue-17518.stderr @@ -4,8 +4,8 @@ error[E0422]: cannot find struct, variant or union type `E` in this scope 16 | E { name: "foobar" }; //~ ERROR unresolved struct, variant or union type `E` | ^ not found in this scope | - = help: possible candidate is found in another module, you can import it into scope: - `use SomeEnum::E;` +help: possible candidate is found in another module, you can import it into scope + | use SomeEnum::E; error: aborting due to previous error diff --git a/src/test/ui/resolve/issue-21221-1.stderr b/src/test/ui/resolve/issue-21221-1.stderr index f38491d5362..7315d295f7b 100644 --- a/src/test/ui/resolve/issue-21221-1.stderr +++ b/src/test/ui/resolve/issue-21221-1.stderr @@ -4,10 +4,10 @@ error[E0405]: cannot find trait `Mul` in this scope 53 | impl Mul for Foo { | ^^^ not found in this scope | - = help: possible candidates are found in other modules, you can import them into scope: - `use mul1::Mul;` - `use mul2::Mul;` - `use std::ops::Mul;` +help: possible candidates are found in other modules, you can import them into scope + | use mul1::Mul; + | use mul2::Mul; + | use std::ops::Mul; error[E0412]: cannot find type `Mul` in this scope --> $DIR/issue-21221-1.rs:72:16 @@ -15,12 +15,12 @@ error[E0412]: cannot find type `Mul` in this scope 72 | fn getMul() -> Mul { | ^^^ not found in this scope | - = help: possible candidates are found in other modules, you can import them into scope: - `use mul1::Mul;` - `use mul2::Mul;` - `use mul3::Mul;` - `use mul4::Mul;` - and 2 other candidates +help: possible candidates are found in other modules, you can import them into scope + | use mul1::Mul; + | use mul2::Mul; + | use mul3::Mul; + | use mul4::Mul; +and 2 other candidates error[E0405]: cannot find trait `ThisTraitReallyDoesntExistInAnyModuleReally` in this scope --> $DIR/issue-21221-1.rs:83:6 @@ -34,8 +34,8 @@ error[E0405]: cannot find trait `Div` in this scope 88 | impl Div for Foo { | ^^^ not found in this scope | - = help: possible candidate is found in another module, you can import it into scope: - `use std::ops::Div;` +help: possible candidate is found in another module, you can import it into scope + | use std::ops::Div; error: cannot continue compilation due to previous error diff --git a/src/test/ui/resolve/issue-21221-2.stderr b/src/test/ui/resolve/issue-21221-2.stderr index 14dac7de4b2..f0b22754e64 100644 --- a/src/test/ui/resolve/issue-21221-2.stderr +++ b/src/test/ui/resolve/issue-21221-2.stderr @@ -4,8 +4,8 @@ error[E0405]: cannot find trait `T` in this scope 28 | impl T for Foo { } | ^ not found in this scope | - = help: possible candidate is found in another module, you can import it into scope: - `use foo::bar::T;` +help: possible candidate is found in another module, you can import it into scope + | use foo::bar::T; error: main function not found diff --git a/src/test/ui/resolve/issue-21221-3.stderr b/src/test/ui/resolve/issue-21221-3.stderr index e1e00571e5d..a4a2496b19a 100644 --- a/src/test/ui/resolve/issue-21221-3.stderr +++ b/src/test/ui/resolve/issue-21221-3.stderr @@ -4,8 +4,8 @@ error[E0405]: cannot find trait `OuterTrait` in this scope 25 | impl OuterTrait for Foo {} | ^^^^^^^^^^ not found in this scope | - = help: possible candidate is found in another module, you can import it into scope: - `use issue_21221_3::outer::OuterTrait;` +help: possible candidate is found in another module, you can import it into scope + | use issue_21221_3::outer::OuterTrait; error: cannot continue compilation due to previous error diff --git a/src/test/ui/resolve/issue-21221-4.stderr b/src/test/ui/resolve/issue-21221-4.stderr index 569315a59cf..dc2f2271731 100644 --- a/src/test/ui/resolve/issue-21221-4.stderr +++ b/src/test/ui/resolve/issue-21221-4.stderr @@ -4,8 +4,8 @@ error[E0405]: cannot find trait `T` in this scope 20 | impl T for Foo {} | ^ not found in this scope | - = help: possible candidate is found in another module, you can import it into scope: - `use issue_21221_4::T;` +help: possible candidate is found in another module, you can import it into scope + | use issue_21221_4::T; error: cannot continue compilation due to previous error diff --git a/src/test/ui/resolve/issue-3907.stderr b/src/test/ui/resolve/issue-3907.stderr index a7dd494d75b..0bf39dc55ce 100644 --- a/src/test/ui/resolve/issue-3907.stderr +++ b/src/test/ui/resolve/issue-3907.stderr @@ -4,8 +4,8 @@ error[E0404]: expected trait, found type alias `Foo` 20 | impl Foo for S { //~ ERROR expected trait, found type alias `Foo` | ^^^ type aliases cannot be used for traits | - = help: possible better candidate is found in another module, you can import it into scope: - `use issue_3907::Foo;` +help: possible better candidate is found in another module, you can import it into scope + | use issue_3907::Foo; error: cannot continue compilation due to previous error diff --git a/src/test/ui/resolve/privacy-struct-ctor.stderr b/src/test/ui/resolve/privacy-struct-ctor.stderr index 940e4acabb2..19940ff4586 100644 --- a/src/test/ui/resolve/privacy-struct-ctor.stderr +++ b/src/test/ui/resolve/privacy-struct-ctor.stderr @@ -8,8 +8,8 @@ error[E0423]: expected value, found struct `Z` | did you mean `S`? | constructor is not visible here due to private fields | - = help: possible better candidate is found in another module, you can import it into scope: - `use m::n::Z;` +help: possible better candidate is found in another module, you can import it into scope + | use m::n::Z; error[E0423]: expected value, found struct `S` --> $DIR/privacy-struct-ctor.rs:36:5 @@ -20,8 +20,8 @@ error[E0423]: expected value, found struct `S` | did you mean `S { /* fields */ }`? | constructor is not visible here due to private fields | - = help: possible better candidate is found in another module, you can import it into scope: - `use m::S;` +help: possible better candidate is found in another module, you can import it into scope + | use m::S; error[E0423]: expected value, found struct `xcrate::S` --> $DIR/privacy-struct-ctor.rs:42:5 @@ -32,8 +32,8 @@ error[E0423]: expected value, found struct `xcrate::S` | did you mean `xcrate::S { /* fields */ }`? | constructor is not visible here due to private fields | - = help: possible better candidate is found in another module, you can import it into scope: - `use m::S;` +help: possible better candidate is found in another module, you can import it into scope + | use m::S; error: tuple struct `Z` is private --> $DIR/privacy-struct-ctor.rs:25:9 diff --git a/src/test/ui/span/issue-35987.stderr b/src/test/ui/span/issue-35987.stderr index 9dab2f77898..e53ea6a55af 100644 --- a/src/test/ui/span/issue-35987.stderr +++ b/src/test/ui/span/issue-35987.stderr @@ -4,8 +4,8 @@ error[E0404]: expected trait, found type parameter `Add` 15 | impl<T: Clone, Add> Add for Foo<T> { | ^^^ not a trait | - = help: possible better candidate is found in another module, you can import it into scope: - `use std::ops::Add;` +help: possible better candidate is found in another module, you can import it into scope + | use std::ops::Add; error: main function not found |
