]>
git.proxmox.com Git - rustc.git/blob - tests/ui/async-await/issues/issue-62517-1.rs
1 // Regression test for #62517. We used to ICE when you had an `async
2 // fn` with an `impl Trait` return that mentioned a `dyn Bar` with no
3 // explicit lifetime bound.
13 async
fn foo(x
: &str) -> impl SecondTrait
<Item
= dyn FirstTrait
> {
17 impl<T
> SecondTrait
for T
{
18 type Item
= dyn FirstTrait
;