Skip to content

Commit c52740c

Browse files
authored
add test for ICE (#13914)
`asked to assemble constituent types of unexpected type: Binder(Foo, [])` Fixes #10972 changelog: none
2 parents 7a834b5 + 1e0b782 commit c52740c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/ui/crashes/ice-10972-tait.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// ICE: #10972
2+
// asked to assemble constituent types of unexpected type: Binder(Foo, [])
3+
#![feature(type_alias_impl_trait)]
4+
5+
use std::fmt::Debug;
6+
type Foo = impl Debug;
7+
const FOO2: Foo = 22_u32;
8+
9+
pub fn main() {}

0 commit comments

Comments
 (0)