We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d32ca2 commit 7483c93Copy full SHA for 7483c93
compiler/rustc_session/src/errors.rs
@@ -397,7 +397,7 @@ pub fn report_lit_error(
397
s.len() > 1 && s.starts_with(first_chars) && s[1..].chars().all(|c| c.is_ascii_digit())
398
}
399
400
- fn looks_like_exponent(s: &str) -> bool {
+ fn looks_like_empty_exponent(s: &str) -> bool {
401
s.len() == 1 && matches!(s.chars().next(), Some('e' | 'E'))
402
403
0 commit comments