mirror of https://github.com/rust-lang/rust
14 lines
308 B
Rust
14 lines
308 B
Rust
#![feature(lazy_type_alias)]
|
|
#![allow(incomplete_features)]
|
|
|
|
// Check that we allow & respect trailing where-clauses on lazy type aliases.
|
|
|
|
type Alias<T> = T
|
|
where
|
|
String: From<T>;
|
|
|
|
fn main() {
|
|
let _: Alias<&str>;
|
|
let _: Alias<()>; //~ ERROR the trait bound `String: From<()>` is not satisfied
|
|
}
|