Sign in
fuchsia
/
third_party
/
rust
/
7bade6ef730cff83f3591479a98916920f66decd
/
.
/
src
/
test
/
ui
/
error-codes
/
E0029-teach.rs
blob: 3ff8cb348e76a9c081e4a169ad9f4ac45d6bc1e7 [
file
] [
log
] [
blame
]
// compile-flags: -Z teach
fn
main
()
{
let
s
=
"hoho"
;
match
s
{
"hello"
..=
"world"
=>
{}
//~^ ERROR only `char` and numeric types are allowed in range patterns
_
=>
{}
}
}