diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2017-07-05 16:39:06 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2017-07-06 14:36:49 -0700 |
| commit | 697c85a4f15b8dd560fb1f78129f5bfdd4baf1f4 (patch) | |
| tree | f96e6e3662433fed1b78afd8641f065ffb6e3e48 /src/test/ui/resolve | |
| parent | eb478e23813b89944edfa602b6927e17c4c62f86 (diff) | |
Only underline suggestion if it is not the only code being shown
Diffstat (limited to 'src/test/ui/resolve')
| -rw-r--r-- | src/test/ui/resolve/enums-are-namespaced-xc.stderr | 6 | ||||
| -rw-r--r-- | src/test/ui/resolve/issue-16058.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/resolve/issue-17518.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/resolve/issue-21221-1.stderr | 8 | ||||
| -rw-r--r-- | src/test/ui/resolve/issue-21221-2.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/resolve/issue-21221-3.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/resolve/issue-21221-4.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/resolve/issue-3907.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/resolve/privacy-struct-ctor.stderr | 6 |
9 files changed, 20 insertions, 12 deletions
diff --git a/src/test/ui/resolve/enums-are-namespaced-xc.stderr b/src/test/ui/resolve/enums-are-namespaced-xc.stderr index 525dd4fe8f1..4b32ecff2fb 100644 --- a/src/test/ui/resolve/enums-are-namespaced-xc.stderr +++ b/src/test/ui/resolve/enums-are-namespaced-xc.stderr @@ -7,7 +7,7 @@ error[E0425]: cannot find value `A` in module `namespaced_enums` help: possible candidate is found in another module, you can import it into scope | 12 | use namespaced_enums::Foo::A; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | error[E0425]: cannot find function `B` in module `namespaced_enums` --> $DIR/enums-are-namespaced-xc.rs:18:31 @@ -18,7 +18,7 @@ error[E0425]: cannot find function `B` in module `namespaced_enums` help: possible candidate is found in another module, you can import it into scope | 12 | 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 @@ -29,7 +29,7 @@ error[E0422]: cannot find struct, variant or union type `C` in module `namespace help: possible candidate is found in another module, you can import it into scope | 12 | 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 7abf6e3d5fd..6d7406f891c 100644 --- a/src/test/ui/resolve/issue-16058.stderr +++ b/src/test/ui/resolve/issue-16058.stderr @@ -7,7 +7,9 @@ error[E0574]: expected struct, variant or union type, found enum `Result` help: possible better candidates are found in other modules, you can import them into scope | 12 | use std::fmt::Result; + | 12 | use std::io::Result; + | 12 | use std::thread::Result; | diff --git a/src/test/ui/resolve/issue-17518.stderr b/src/test/ui/resolve/issue-17518.stderr index d7017f30145..2f94dbdc2c5 100644 --- a/src/test/ui/resolve/issue-17518.stderr +++ b/src/test/ui/resolve/issue-17518.stderr @@ -7,7 +7,7 @@ error[E0422]: cannot find struct, variant or union type `E` in this scope help: possible candidate is found in another module, you can import it into scope | 11 | 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 ce5ed7b5e5d..ddaee451e90 100644 --- a/src/test/ui/resolve/issue-21221-1.stderr +++ b/src/test/ui/resolve/issue-21221-1.stderr @@ -7,7 +7,9 @@ error[E0405]: cannot find trait `Mul` in this scope help: possible candidates are found in other modules, you can import them into scope | 11 | use mul1::Mul; + | 11 | use mul2::Mul; + | 11 | use std::ops::Mul; | @@ -20,9 +22,13 @@ error[E0412]: cannot find type `Mul` in this scope help: possible candidates are found in other modules, you can import them into scope | 11 | use mul1::Mul; + | 11 | use mul2::Mul; + | 11 | use mul3::Mul; + | 11 | use mul4::Mul; + | and 2 other candidates error[E0405]: cannot find trait `ThisTraitReallyDoesntExistInAnyModuleReally` in this scope @@ -40,7 +46,7 @@ error[E0405]: cannot find trait `Div` in this scope help: possible candidate is found in another module, you can import it into scope | 11 | 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 bca3667d60b..a759116c6ac 100644 --- a/src/test/ui/resolve/issue-21221-2.stderr +++ b/src/test/ui/resolve/issue-21221-2.stderr @@ -7,7 +7,7 @@ error[E0405]: cannot find trait `T` in this scope help: possible candidate is found in another module, you can import it into scope | 11 | use foo::bar::T; - | ^^^^^^^^^^^^^^^^ + | error[E0601]: 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 f364fb590ab..f4d183192b6 100644 --- a/src/test/ui/resolve/issue-21221-3.stderr +++ b/src/test/ui/resolve/issue-21221-3.stderr @@ -7,7 +7,7 @@ error[E0405]: cannot find trait `OuterTrait` in this scope help: possible candidate is found in another module, you can import it into scope | 16 | 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 a022ca0749d..eb71ee893ce 100644 --- a/src/test/ui/resolve/issue-21221-4.stderr +++ b/src/test/ui/resolve/issue-21221-4.stderr @@ -7,7 +7,7 @@ error[E0405]: cannot find trait `T` in this scope help: possible candidate is found in another module, you can import it into scope | 16 | 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 56d3afd77e6..70b4599dbf8 100644 --- a/src/test/ui/resolve/issue-3907.stderr +++ b/src/test/ui/resolve/issue-3907.stderr @@ -7,7 +7,7 @@ error[E0404]: expected trait, found type alias `Foo` help: possible better candidate is found in another module, you can import it into scope | 12 | 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 c0b0fc63f22..57b143d34db 100644 --- a/src/test/ui/resolve/privacy-struct-ctor.stderr +++ b/src/test/ui/resolve/privacy-struct-ctor.stderr @@ -11,7 +11,7 @@ error[E0423]: expected value, found struct `Z` help: possible better candidate is found in another module, you can import it into scope | 15 | use m::n::Z; - | ^^^^^^^^^^^^ + | error[E0423]: expected value, found struct `S` --> $DIR/privacy-struct-ctor.rs:36:5 @@ -25,7 +25,7 @@ error[E0423]: expected value, found struct `S` help: possible better candidate is found in another module, you can import it into scope | 13 | use m::S; - | ^^^^^^^^^ + | error[E0423]: expected value, found struct `xcrate::S` --> $DIR/privacy-struct-ctor.rs:42:5 @@ -39,7 +39,7 @@ error[E0423]: expected value, found struct `xcrate::S` help: possible better candidate is found in another module, you can import it into scope | 13 | use m::S; - | ^^^^^^^^^ + | error[E0603]: tuple struct `Z` is private --> $DIR/privacy-struct-ctor.rs:25:9 |
