rust/tests/crashes/122259.rs
2024-04-18 18:55:20 +02:00

13 lines
152 B
Rust

//@ known-bug: #122259
#![feature(unsized_fn_params)]
#[derive(Copy, Clone)]
struct Target(str);
fn w(t: &Target) {
x(*t);
}
fn x(t: Target) {}