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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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");
}