]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/force-warn/force-deny-by-default-lint.rs
Rollup merge of #84687 - a1phyr:improve_rwlock, r=m-ou-se
[rust.git] / src / test / ui / lint / force-warn / force-deny-by-default-lint.rs
1 // compile-flags: --force-warns const_err
2 // check-pass
3
4 const C: i32 = 1 / 0;
5 //~^ WARN any use of this value will cause an error
6 //~| WARN this was previously accepted by the compiler
7
8 fn main() {}