mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-29 03:37:26 +03:00
8 lines
102 B
Rust
8 lines
102 B
Rust
// check-pass
|
|
|
|
fn foo<T: ?Sized>(_f: impl AsRef<T>) {}
|
|
|
|
fn main() {
|
|
foo::<str>("".to_string());
|
|
}
|