mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-27 04:31:18 +00:00

As before, add `MetaSized` and `PointeeSized` traits to all of the non-minicore `no_core` tests so that they don't fail for lack of language items.
17 lines
413 B
Rust
17 lines
413 B
Rust
//@ known-bug: #120033
|
|
#![feature(non_lifetime_binders)]
|
|
#![allow(sized_hierarchy_migration)]
|
|
#![feature(sized_hierarchy)] // added to keep parameters unconstrained
|
|
|
|
pub trait Foo<T: std::marker::PointeeSized> {
|
|
type Bar<K: std::marker::PointeeSized>;
|
|
}
|
|
|
|
pub struct Bar<T: ?AutoTrait> {}
|
|
|
|
pub fn f<T1, T2>()
|
|
where
|
|
T1: for<T> Foo<usize, Bar = Bar<T>>,
|
|
T2: for<L, T> Foo<usize, Bar<T> = T1::Bar<T>>,
|
|
{}
|