This website requires JavaScript.
Explore
Help
Register
Sign In
rust-lang
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Actions
1
Packages
Projects
Releases
Wiki
Activity
Files
fc4b54157fd1732e03689bca12b81f0a496c7913
rust
/
src
/
test
/
ui
/
parser
/
issue-1802-1.rs
5 lines
84 B
Rust
Raw
Normal View
History
Unescape
Escape
test: Add tests for #1802
2012-02-10 15:43:16 -08:00
// error-pattern:no valid digits found for number
fn
main
(
)
{
Lex binary and octal literals more eagerly. Previously 0b12 was considered two tokens, 0b1 and 2, as 2 isn't a valid base 2 digit. This patch changes that to collapse them into one (and makes `0b12` etc. an error: 2 isn't a valid base 2 digit). This may break some macro invocations of macros with `tt` (or syntax extensions) that rely on adjacent digits being separate tokens and hence is a [breaking-change] The fix is to separate the tokens, e.g. `0b12` -> `0b1 2`. cc https://github.com/rust-lang/rfcs/pull/879
2015-03-31 00:27:13 +11:00
log
(
error
,
0
b
)
;
librustc: Replace `impl Type : Trait` with `impl Trait for Type`. rs=implflipping
2013-02-14 11:47:00 -08:00
}
Reference in New Issue
Copy Permalink