mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
12 lines
221 B
Rust
12 lines
221 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(()) //~ `()` is not an iterator
|
|
}
|