blob: 8a94abaeb07441243a24539757cabac3ea9806dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Regression test of #43913.
// run-rustfix
#![feature(trait_alias)]
#![allow(bare_trait_objects, dead_code)]
trait Strings = Iterator<Item=String>;
struct Struct<S: Strings>(S);
//~^ ERROR: expected trait, found type alias `Strings`
fn main() {}
|