summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/int-literal-too-large-span.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/int-literal-too-large-span.rs')
-rw-r--r--tests/ui/parser/int-literal-too-large-span.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/parser/int-literal-too-large-span.rs b/tests/ui/parser/int-literal-too-large-span.rs
new file mode 100644
index 000000000..666ca9350
--- /dev/null
+++ b/tests/ui/parser/int-literal-too-large-span.rs
@@ -0,0 +1,7 @@
+// issue #17123
+
+fn main() {
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
+ //~^ ERROR integer literal is too large
+ ; // the span shouldn't point to this.
+}