This website requires JavaScript.
Explore
Help
Sign in
bjoernager
/
rust
Watch
1
Fork
You've already forked rust
0
Code
Issues
Pull requests
Activity
c8b76bcf58
rust
/
tests
/
ui
/
impl-trait
/
explicit-generic-args-with-impl-trait
/
explicit-generic-args.rs
8 lines
103 B
Rust
Raw
Normal View
History
Unescape
Escape
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ check-pass
Implement a `explicit_generic_args_with_impl_trait` feature gate When this gate is enabled, explicit generic arguments can be specified even if `impl Trait` is used in argument position. Generic arguments can only be specified for explicit generic parameters but not for the synthetic type parameters from `impl Trait`
2021-06-09 20:56:41 +01:00
fn
foo
<
T
:
?
Sized
>
(
_f
:
impl
AsRef
<
T
>
)
{
}
fn
main
(
)
{
foo
::
<
str
>
(
"
"
.
to_string
(
)
)
;
}
Reference in a new issue
Copy permalink