rust/tests/ui/impl-trait/explicit-generic-args-with-impl-trait/issue-87718.rs
2024-02-16 20:02:50 +00:00

8 lines
112 B
Rust

//@ check-pass
fn f<T: ?Sized>(_: impl AsRef<T>, _: impl AsRef<T>) {}
fn main() {
f::<[u8]>("a", b"a");
}