rust/tests/crashes/130524.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
386 B
Rust
Raw Normal View History

2024-09-28 11:07:54 +00:00
//@ 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)]);
}