Sign in
fuchsia
/
third_party
/
rust
/
4bf20b2b558289e9dcffd496890df116f98612c7
/
.
/
tests
/
ui
/
never_type
/
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
}