blob: 40c678c281f4c65e4da28abb96f9b917becbde78 (
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)]
type Strings = Iterator<Item=String>;
struct Struct<S: Strings>(S);
//~^ ERROR: expected trait, found type alias `Strings`
fn main() {}
|