summaryrefslogtreecommitdiffstats
path: root/tests/ui/rust-2018/dyn-keyword.fixed
blob: 044824cbbd3677fd89f0c93bda3faac47b888785 (plain)
1
2
3
4
5
6
7
8
9
10
// edition:2015
// run-rustfix

#![allow(unused_variables)]
#![deny(keyword_idents)]

fn main() {
    let r#dyn = (); //~ ERROR dyn
    //~^ WARN this is accepted in the current edition
}