mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 11:42:15 +00:00
12 lines
256 B
Rust
12 lines
256 B
Rust
// Regression test for #108072: do not ICE upon unmet trait alias constraint
|
|
|
|
#![feature(trait_alias)]
|
|
|
|
trait IteratorAlias = Iterator;
|
|
|
|
fn f(_: impl IteratorAlias) {}
|
|
|
|
fn main() {
|
|
f(()) //~ ERROR the trait bound `(): IteratorAlias` is not satisfied
|
|
}
|