about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2017-05-10 16:02:49 +0200
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2017-05-10 17:05:33 +0200
commitf859f2585b0167dfd9ef22d88d992ba6fe55e158 (patch)
treecfb5f48578884cace427f12a91d28a4c4222cbc2 /src/test
parent9d51d6bc30cbea2bec56c1a2ba351a91ced9dcb0 (diff)
downloadrust-f859f2585b0167dfd9ef22d88d992ba6fe55e158.tar.gz
rust-f859f2585b0167dfd9ef22d88d992ba6fe55e158.zip
Update a compile-fail test
Diffstat (limited to 'src/test')
-rw-r--r--src/test/compile-fail/issue-35675.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/compile-fail/issue-35675.rs b/src/test/compile-fail/issue-35675.rs
index f990c2c42fe..001c1f2eddc 100644
--- a/src/test/compile-fail/issue-35675.rs
+++ b/src/test/compile-fail/issue-35675.rs
@@ -8,7 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-enum Fruit {
+// these two HELPs are actually in a new line between this line and the `enum Fruit` line
+enum Fruit { //~ HELP possible candidate is found in another module, you can import it into scope
+    //~^ HELP possible candidate is found in another module, you can import it into scope
     Apple(i64),
     //~^ HELP there is an enum variant `Fruit::Apple`, did you mean to use `Fruit`?
     //~| HELP there is an enum variant `Fruit::Apple`, did you mean to use `Fruit`?
@@ -21,7 +23,6 @@ fn should_return_fruit() -> Apple {
     Apple(5)
     //~^ ERROR cannot find function `Apple` in this scope
     //~| NOTE not found in this scope
-    //~| HELP possible candidate is found in another module, you can import it into scope
 }
 
 fn should_return_fruit_too() -> Fruit::Apple {
@@ -30,7 +31,6 @@ fn should_return_fruit_too() -> Fruit::Apple {
     Apple(5)
     //~^ ERROR cannot find function `Apple` in this scope
     //~| NOTE not found in this scope
-    //~| HELP possible candidate is found in another module, you can import it into scope
 }
 
 fn foo() -> Ok {