// 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.
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`
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