rust/tests/ui/impl-trait/in-trait/synthetic-hir-has-parent.rs
2024-04-03 17:44:47 -04:00

12 lines
297 B
Rust

// Don't panic when iterating through the `hir::Map::parent_iter` of an RPITIT.
pub trait Foo {
fn demo() -> impl Foo
//~^ ERROR the trait bound `String: Copy` is not satisfied
where
String: Copy;
//~^ ERROR the trait bound `String: Copy` is not satisfied
}
fn main() {}