diff --git a/tests/ui/ice-4545.rs b/tests/ui/ice-4545.rs new file mode 100644 index 000000000000..58ef4c798dd3 --- /dev/null +++ b/tests/ui/ice-4545.rs @@ -0,0 +1,15 @@ +fn repro() { + trait Foo { + type Bar; + } + + #[allow(dead_code)] + struct Baz { + field: T::Bar, + } +} + +fn main() { + repro(); +} +