summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/int-literal-too-large-span.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/parser/int-literal-too-large-span.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/parser/int-literal-too-large-span.rs b/src/test/ui/parser/int-literal-too-large-span.rs
new file mode 100644
index 000000000..666ca9350
--- /dev/null
+++ b/src/test/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.
+}