Skip to content

Commit

Permalink
add test for ICE (#13914)
Browse files Browse the repository at this point in the history
`asked to assemble constituent types of unexpected type: Binder(Foo,
[])`

Fixes #10972

changelog: none
  • Loading branch information
dswij authored Dec 31, 2024
2 parents 7a834b5 + 1e0b782 commit c52740c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/ui/crashes/ice-10972-tait.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// ICE: #10972
// asked to assemble constituent types of unexpected type: Binder(Foo, [])
#![feature(type_alias_impl_trait)]

use std::fmt::Debug;
type Foo = impl Debug;
const FOO2: Foo = 22_u32;

pub fn main() {}

0 comments on commit c52740c

Please sign in to comment.