]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/parser-recovery-1.rs
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / parser-recovery-1.rs
index 9fb4d6facddabde1b9e5e587e2667bf05c38f0fc..f51bcb9e70cad2911a8fb8a6d154daa7d7ce105c 100644 (file)
 
 trait Foo {
     fn bar() {
-        let x = foo(); //~ ERROR cannot find function `foo` in this scope
-
+        let x = foo();
+        //~^ ERROR cannot find function `foo` in this scope
 }
 
 fn main() {
-    let x = y.;  //~ ERROR unexpected token
-                 //~^ ERROR cannot find value `y` in this scope
+    let x = y.;
+    //~^ ERROR unexpected token
+    //~| ERROR cannot find value `y` in this scope
 } //~ ERROR this file contains an un-closed delimiter