mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
13 lines
152 B
Rust
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) {}
|