]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2018/dyn-keyword.rs
Rollup merge of #105843 - compiler-errors:sugg-const, r=lcnr
[rust.git] / src / test / ui / rust-2018 / dyn-keyword.rs
1 // edition:2015
2 // run-rustfix
3
4 #![allow(unused_variables)]
5 #![deny(keyword_idents)]
6
7 fn main() {
8     let dyn = (); //~ ERROR dyn
9     //~^ WARN this is accepted in the current edition
10 }