Sign in
fuchsia
/
third_party
/
rust
/
f233a4c18bec906dab0b8531f326a15fadece547
/
.
/
src
/
test
/
ui
/
never-assign-wrong-type.rs
blob: 67e26f5663f412ed5fd18167e7fcf3607ab82c43 [
file
] [
log
] [
blame
]
// Test that we can't use another type in place of !
#![
feature
(
never_type
)]
#![
deny
(
warnings
)]
fn
main
()
{
let
x
:
!
=
"hello"
;
//~ ERROR mismatched types
}