]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0029.stderr
Auto merge of #47956 - retep998:is-nibbles, r=BurntSushi
[rust.git] / src / test / ui / error-codes / E0029.stderr
1 error[E0658]: non-reference pattern used to match a reference (see issue #42640)
2   --> $DIR/E0029.rs:15:9
3    |
4 15 |         "hello" ... "world" => {}
5    |         ^^^^^^^^^^^^^^^^^^^ help: consider using a reference: `&"hello" ... "world"`
6    |
7    = help: add #![feature(match_default_bindings)] to the crate attributes to enable
8
9 error[E0029]: only char and numeric types are allowed in range patterns
10   --> $DIR/E0029.rs:15:9
11    |
12 15 |         "hello" ... "world" => {}
13    |         ^^^^^^^^^^^^^^^^^^^ ranges require char or numeric types
14    |
15    = note: start type: &'static str
16    = note: end type: &'static str
17
18 error: aborting due to 2 previous errors
19