2023-10-15 06:40:17 -05:00
|
|
|
// Weak aliases might not cover type parameters.
|
|
|
|
|
2024-09-11 16:57:04 -05:00
|
|
|
//@ revisions: classic next
|
|
|
|
//@[next] compile-flags: -Znext-solver
|
|
|
|
|
2023-10-15 06:40:17 -05:00
|
|
|
//@ aux-crate:foreign=parametrized-trait.rs
|
|
|
|
//@ edition:2021
|
|
|
|
|
|
|
|
#![feature(lazy_type_alias)]
|
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
|
|
|
type Identity<T> = T;
|
|
|
|
|
|
|
|
struct Local;
|
|
|
|
|
|
|
|
impl<T> foreign::Trait1<Local, T> for Identity<T> {}
|
|
|
|
//~^ ERROR type parameter `T` must be covered by another type
|
|
|
|
|
|
|
|
fn main() {}
|