rust/tests/ui/impl-trait/explicit-generic-args-with-impl-trait/issue-87718.rs

8 lines
111 B
Rust
Raw Normal View History

2021-08-03 06:38:48 -05:00
// check-pass
fn f<T: ?Sized>(_: impl AsRef<T>, _: impl AsRef<T>) {}
fn main() {
f::<[u8]>("a", b"a");
}