rust/tests/crashes/122259.rs

13 lines
152 B
Rust
Raw Normal View History

2024-04-15 16:01:02 -05:00
//@ known-bug: #122259
#![feature(unsized_fn_params)]
#[derive(Copy, Clone)]
struct Target(str);
fn w(t: &Target) {
x(*t);
}
fn x(t: Target) {}