mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
9 lines
163 B
Rust
9 lines
163 B
Rust
// Test that we can't use another type in place of !
|
|
|
|
#![feature(never_type)]
|
|
#![deny(warnings)]
|
|
|
|
fn main() {
|
|
let x: ! = "hello"; //~ ERROR mismatched types
|
|
}
|