diff options
Diffstat (limited to 'tests/ui/impl-trait/explicit-generic-args-with-impl-trait/explicit-generic-args.rs')
-rw-r--r-- | tests/ui/impl-trait/explicit-generic-args-with-impl-trait/explicit-generic-args.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/impl-trait/explicit-generic-args-with-impl-trait/explicit-generic-args.rs b/tests/ui/impl-trait/explicit-generic-args-with-impl-trait/explicit-generic-args.rs new file mode 100644 index 000000000..99e0931ab --- /dev/null +++ b/tests/ui/impl-trait/explicit-generic-args-with-impl-trait/explicit-generic-args.rs @@ -0,0 +1,7 @@ +// check-pass + +fn foo<T: ?Sized>(_f: impl AsRef<T>) {} + +fn main() { + foo::<str>("".to_string()); +} |