]> git.lizzy.rs Git - rust.git/commitdiff
Fix tests
authorAaron Hill <aa1ronham@gmail.com>
Wed, 20 May 2020 19:33:58 +0000 (15:33 -0400)
committerAaron Hill <aa1ronham@gmail.com>
Wed, 20 May 2020 19:33:58 +0000 (15:33 -0400)
src/test/ui/proc-macro/break-token-spans.rs
src/test/ui/suggestions/issue-61963.rs
src/test/ui/suggestions/issue-61963.stderr

index ce8b9ebb4f9d25250d22ccd3bf53099d621e994c..59dc3b5043cd78bdb4ce6834daa8934c15b8dae4 100644 (file)
@@ -2,7 +2,7 @@
 // Regression test for issues #68489 and #70987
 // Tests that we properly break tokens in `probably_equal_for_proc_macro`
 // See #72306
-// 
+//
 // Note that the weird spacing in this example is critical
 // for testing the issue.
 
index c9d738f5a283e375591925ae40f68a8dbdf9e88d..666fc965f02f5caf2013effa1ca6b4a729b38fb9 100644 (file)
@@ -16,6 +16,7 @@ pub trait Bar { }
 
 #[dom_struct]
 pub struct Foo {
+    //~^ ERROR trait objects without an explicit `dyn` are deprecated [bare_trait_objects]
     qux: Qux<Qux<Baz>>,
     bar: Box<Bar>,
     //~^ ERROR trait objects without an explicit `dyn` are deprecated [bare_trait_objects]
index 0e2eb7616cf9d23639842be9acb1df8d2d0618ff..62ae5fa3fe54fd09fc194f5ae5e5b4586564607e 100644 (file)
@@ -1,5 +1,5 @@
 error: trait objects without an explicit `dyn` are deprecated
-  --> $DIR/issue-61963.rs:20:14
+  --> $DIR/issue-61963.rs:21:14
    |
 LL |     bar: Box<Bar>,
    |              ^^^ help: use `dyn`: `dyn Bar`
@@ -10,5 +10,11 @@ note: the lint level is defined here
 LL | #![deny(bare_trait_objects)]
    |         ^^^^^^^^^^^^^^^^^^
 
-error: aborting due to previous error
+error: trait objects without an explicit `dyn` are deprecated
+  --> $DIR/issue-61963.rs:18:1
+   |
+LL | pub struct Foo {
+   | ^^^ help: use `dyn`: `dyn pub`
+
+error: aborting due to 2 previous errors