Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
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
}