|
| 1 | +error: lifetime in trait object type must be followed by `+` |
| 2 | + --> $DIR/issue-85350.rs:3:26 |
| 3 | + | |
| 4 | +LL | impl FnMut(&Context) for 'tcx { |
| 5 | + | ^^^^ |
| 6 | + |
| 7 | +error[E0407]: method `print` is not a member of trait `FnMut` |
| 8 | + --> $DIR/issue-85350.rs:12:5 |
| 9 | + | |
| 10 | +LL | fn print () -> Self :: Output{ } |
| 11 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `FnMut` |
| 12 | + |
| 13 | +error[E0412]: cannot find type `Context` in this scope |
| 14 | + --> $DIR/issue-85350.rs:3:13 |
| 15 | + | |
| 16 | +LL | impl FnMut(&Context) for 'tcx { |
| 17 | + | ^^^^^^^ not found in this scope |
| 18 | + | |
| 19 | +help: consider importing this struct |
| 20 | + | |
| 21 | +LL | use std::task::Context; |
| 22 | + | |
| 23 | + |
| 24 | +warning: trait objects without an explicit `dyn` are deprecated |
| 25 | + --> $DIR/issue-85350.rs:3:26 |
| 26 | + | |
| 27 | +LL | impl FnMut(&Context) for 'tcx { |
| 28 | + | ^^^^ help: use `dyn`: `dyn 'tcx` |
| 29 | + | |
| 30 | + = note: `#[warn(bare_trait_objects)]` on by default |
| 31 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! |
| 32 | + = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165> |
| 33 | + |
| 34 | +error[E0601]: `main` function not found in crate `issue_85350` |
| 35 | + --> $DIR/issue-85350.rs:3:1 |
| 36 | + | |
| 37 | +LL | / impl FnMut(&Context) for 'tcx { |
| 38 | +LL | | |
| 39 | +LL | | |
| 40 | +LL | | |
| 41 | +... | |
| 42 | +LL | | |
| 43 | +LL | | } |
| 44 | + | |_^ consider adding a `main` function to `$DIR/issue-85350.rs` |
| 45 | + |
| 46 | +error[E0224]: at least one trait is required for an object type |
| 47 | + --> $DIR/issue-85350.rs:3:26 |
| 48 | + | |
| 49 | +LL | impl FnMut(&Context) for 'tcx { |
| 50 | + | ^^^^ |
| 51 | + |
| 52 | +error[E0261]: use of undeclared lifetime name `'tcx` |
| 53 | + --> $DIR/issue-85350.rs:3:26 |
| 54 | + | |
| 55 | +LL | impl FnMut(&Context) for 'tcx { |
| 56 | + | - ^^^^ undeclared lifetime |
| 57 | + | | |
| 58 | + | help: consider introducing lifetime `'tcx` here: `<'tcx>` |
| 59 | + | |
| 60 | + = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
| 61 | + |
| 62 | +error[E0229]: associated type bindings are not allowed here |
| 63 | + --> $DIR/issue-85350.rs:3:6 |
| 64 | + | |
| 65 | +LL | impl FnMut(&Context) for 'tcx { |
| 66 | + | ^^^^^^^^^^^^^^^ associated type not allowed here |
| 67 | + |
| 68 | +error: aborting due to 7 previous errors; 1 warning emitted |
| 69 | + |
| 70 | +Some errors have detailed explanations: E0224, E0229, E0261, E0407, E0412, E0601. |
| 71 | +For more information about an error, try `rustc --explain E0224`. |
0 commit comments