From 8a949dfea2c26d55aad036cf2b4000a2d45f5159 Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Tue, 15 Nov 2016 17:03:27 +1300 Subject: save-analysis: handle << and >> operators inside [] in types Fixes #37700 --- src/test/run-make/save-analysis/foo.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/test') diff --git a/src/test/run-make/save-analysis/foo.rs b/src/test/run-make/save-analysis/foo.rs index e9ed897bf30..e8b69729af6 100644 --- a/src/test/run-make/save-analysis/foo.rs +++ b/src/test/run-make/save-analysis/foo.rs @@ -57,6 +57,12 @@ fn test_alias(i: Option<::Item>) { let y = x.1; } +// Issue #37700 +const LUT_BITS: usize = 3; +pub struct HuffmanTable { + ac_lut: Option<[(i16, u8); 1 << LUT_BITS]>, +} + struct TupStruct(isize, isize, Box); fn test_tup_struct(x: TupStruct) -> isize { -- cgit 1.4.1-3-g733a5