This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2025-04-29 19:47:38 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
26907374b9
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 19:56:41 +00:00
fn
foo
<
T
:
?
Sized
>
(
_f
:
impl
AsRef
<
T
>
)
{
}
fn
main
(
)
{
foo
::
<
str
>
(
"
"
.
to_string
(
)
)
;
}
Reference in New Issue
Copy Permalink