]> git.lizzy.rs Git - rust.git/blob - src/test/ui/never_type/never-assign-wrong-type.rs
Rollup merge of #102118 - notriddle:notriddle/line-numbers, r=GuillaumeGomez
[rust.git] / src / test / ui / never_type / never-assign-wrong-type.rs
1 // Test that we can't use another type in place of !
2
3 #![feature(never_type)]
4 #![deny(warnings)]
5
6 fn main() {
7     let x: ! = "hello"; //~ ERROR mismatched types
8 }