]> git.lizzy.rs Git - rust.git/blob - tests/ui/never_type/never-assign-wrong-type.rs
Rollup merge of #106958 - jyn514:labels, r=m-ou-se
[rust.git] / tests / 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 }