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

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

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