test: Add tests for #1802
This commit is contained in:
parent
b9e0ee8e7e
commit
17110fb28b
4
src/test/compile-fail/issue-1802-1.rs
Normal file
4
src/test/compile-fail/issue-1802-1.rs
Normal file
@ -0,0 +1,4 @@
|
||||
// error-pattern:no valid digits found for number
|
||||
fn main() {
|
||||
log(error, 0b42);
|
||||
}
|
4
src/test/compile-fail/issue-1802-2.rs
Normal file
4
src/test/compile-fail/issue-1802-2.rs
Normal file
@ -0,0 +1,4 @@
|
||||
// error-pattern:no valid digits found for number
|
||||
fn main() {
|
||||
log(error, 0bu);
|
||||
}
|
Loading…
Reference in New Issue
Block a user