mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +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) {}
|