]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/dyn-keyword/issue-56327-dyn-trait-in-macro-is-okay.rs
3 // rust-lang/rust#56327: Some occurrences of `dyn` within a macro are
4 // not instances of identifiers, and thus should *not* be caught by the
7 // Otherwise, rustfix replaces the type `Box<dyn Drop>` with
8 // `Box<r#dyn Drop>`, which is injecting a bug rather than fixing
11 #![deny(rust_2018_compatibility)]
16 let _x
: Box
<dyn Drop
>;