mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 15:39:20 +00:00
12 lines
297 B
Rust
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() {}
|