about summary refs log tree commit diff
path: root/tests/ui/offset-of/offset-of-tuple.rs
diff options
context:
space:
mode:
authorLieselotte <52315535+she3py@users.noreply.github.com>2024-09-14 12:41:25 +0200
committerLieselotte <52315535+she3py@users.noreply.github.com>2024-09-14 12:41:25 +0200
commit3d20c810b0be045d575b774b50df1824b147c3ba (patch)
tree9c0757ee6f699732c99e8cd3adf1c47afc95f045 /tests/ui/offset-of/offset-of-tuple.rs
parent003da02352a62310bc9f67db511244946f01dd4a (diff)
downloadrust-3d20c810b0be045d575b774b50df1824b147c3ba.tar.gz
rust-3d20c810b0be045d575b774b50df1824b147c3ba.zip
Fix `Parser::break_up_float`'s right span
Diffstat (limited to 'tests/ui/offset-of/offset-of-tuple.rs')
-rw-r--r--tests/ui/offset-of/offset-of-tuple.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/offset-of/offset-of-tuple.rs b/tests/ui/offset-of/offset-of-tuple.rs
index b0822352c9d..db00fe05583 100644
--- a/tests/ui/offset-of/offset-of-tuple.rs
+++ b/tests/ui/offset-of/offset-of-tuple.rs
@@ -28,6 +28,7 @@ type ComplexTup = (((u8, u8), u8), u8);
 
 fn nested() {
     offset_of!(((u8, u16), (u32, u16, u8)), 0.2); //~ ERROR no field `2`
+    offset_of!(((u8, u16), (u32, u16, u8)), 0.1e2); //~ ERROR no field `1e2`
     offset_of!(((u8, u16), (u32, u16, u8)), 1.2);
     offset_of!(((u8, u16), (u32, u16, u8)), 1.2.0); //~ ERROR no field `0`