rust/src/test/ui/error-codes/E0029.stderr
Zack M. Davis 057715557b migrate codebase to ..= inclusive range patterns
These were stabilized in March 2018's #47813, and are the Preferred Way
to Do It going forward (q.v. #51043).
2018-06-26 07:53:30 -07:00

12 lines
394 B
Text

error[E0029]: only char and numeric types are allowed in range patterns
--> $DIR/E0029.rs:15:9
|
LL | "hello" ..= "world" => {}
| ^^^^^^^^^^^^^^^^^^^ ranges require char or numeric types
|
= note: start type: &'static str
= note: end type: &'static str
error: aborting due to previous error
For more information about this error, try `rustc --explain E0029`.