Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (20 sloc) 554 Bytes
// build-pass (FIXME(62277): could be check-pass?)
// rust-lang/rust#56327: Some occurrences of `dyn` within a macro are
// not instances of identifiers, and thus should *not* be caught by the
// keyword_ident lint.
// Otherwise, rustfix replaces the type `Box<dyn Drop>` with
// `Box<r#dyn Drop>`, which is injecting a bug rather than fixing
// anything.
macro_rules! foo {
() => {
fn generated_foo() {
let _x: Box<dyn Drop>;
fn main() {
You can’t perform that action at this time.