2024-02-11 09:22:52 +01:00
|
|
|
// HIR ty lowering uses `FreshTy(0)` as a dummy `Self` type when instanciating trait objects.
|
2022-08-13 18:39:30 +02:00
|
|
|
// This `FreshTy(0)` can leak into substs, causing ICEs in several places.
|
|
|
|
|
|
2022-08-07 22:02:02 +02:00
|
|
|
#![feature(trait_alias)]
|
|
|
|
|
|
|
|
|
|
pub trait SelfInput = Fn(&mut Self);
|
|
|
|
|
|
|
|
|
|
pub fn f(_f: &dyn SelfInput) {}
|
2024-11-20 14:19:36 -08:00
|
|
|
//~^ ERROR the trait alias `SelfInput` is not dyn compatible [E0038]
|
2022-08-07 22:02:02 +02:00
|
|
|
|
|
|
|
|
fn main() {}
|