diff options
Diffstat (limited to 'tests/ui/save-analysis/issue-59134-1.rs')
-rw-r--r-- | tests/ui/save-analysis/issue-59134-1.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/save-analysis/issue-59134-1.rs b/tests/ui/save-analysis/issue-59134-1.rs new file mode 100644 index 000000000..3cb629777 --- /dev/null +++ b/tests/ui/save-analysis/issue-59134-1.rs @@ -0,0 +1,12 @@ +// compile-flags: -Zsave-analysis + +// Check that this doesn't ICE when processing associated const (type). + +fn func() { + trait Trait { + type MyType; + const CONST: Self::MyType = bogus.field; //~ ERROR cannot find value `bogus` + } +} + +fn main() {} |