Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
traits
/
alias
/
suggest-trait-alias-instead-of-type.rs
blob: 5ed8bc84e0da183f92d270af279099854814b738 [
file
] [
log
] [
blame
]
// 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
()
{}