Closed
Description
src/librustc/session/mod.rs:63:39: 63:67 error: `mir::transform::Passes` is not a trait [E0404]
src/librustc/session/mod.rs:63 pub mir_passes: RefCell<for<'tcx> mir::transform::Passes<'tcx>>,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/librustc/session/mod.rs:63:39: 63:67 help: run `rustc --explain E0404` to see a detailed explanation
src/librustc/session/mod.rs:63:39: 63:67 note: `type` aliases cannot be used for traits
src/librustc/session/mod.rs:63 pub mir_passes: RefCell<for<'tcx> mir::transform::Passes<'tcx>>,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
The error here is pretty clear, but the note is completely wrong as the relevant snippet appears in the type of the struct field and not type
item.