rust/tests/crashes/130524.rs
2024-09-29 11:58:09 +02:00

23 lines
386 B
Rust

//@ known-bug: #130524
trait Transform {
type Output<'a>;
}
trait Propagate<Input> {}
fn new_node<T: Transform>(_c: Vec<Box<dyn for<'a> Propagate<<T as Transform>::Output<'a>>>>) -> T {
todo!()
}
impl<Input, T> Propagate<Input> for T {}
struct Noop;
impl Transform for Noop {
type Output<'a> = ();
}
fn main() {
let _node: Noop = new_node(vec![Box::new(Noop)]);
}