Skip to content

Commit e52a488

Browse files
committed
Add a test for rust-lang#4357
1 parent 6646248 commit e52a488

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Diff for: tests/source/type.rs

+6
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,9 @@ impl<T: ? const Trait> Foo<T> {
166166
Self(t)
167167
}
168168
}
169+
170+
// #4357
171+
type T = typeof(
172+
1);
173+
impl T for .. {
174+
}

Diff for: tests/target/type.rs

+4
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,7 @@ impl<T: ?const Trait> Foo<T> {
177177
Self(t)
178178
}
179179
}
180+
181+
// #4357
182+
type T = typeof(1);
183+
impl T for .. {}

0 commit comments

Comments
 (0)