]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/impl-trait/issues/issue-83929-impl-trait-in-generic-default.rs
1 struct Foo
<T
= impl Copy
>(T
);
2 //~^ ERROR `impl Trait` not allowed outside of function and method return types
4 type Result
<T
, E
= impl std
::error
::Error
> = std
::result
::Result
<T
, E
>;
5 //~^ ERROR `impl Trait` not allowed outside of function and method return types
7 // should not cause ICE
12 fn main() -> Result
<()> {}