]>
git.proxmox.com Git - rustc.git/blob - tests/ui/closures/2229_closure_analysis/migrations/issue-90024-adt-correct-subst.rs
1 // Test that rustc doesn't ICE as in #90024.
5 #![warn(rust_2021_incompatible_closure_captures)]
7 // Checks there's no double-subst into the generic args, otherwise we get OOB
9 pub struct Graph
<N
, E
, Ix
> {
14 fn graph
<N
, E
>() -> Graph
<N
, E
, i32> {
18 let g
= graph
::<i32, i32>();
22 // Checks that there is a subst into the fields, otherwise we get normalization error
25 struct Foo
<I
: Iterator
> {
29 let v
= Foo
::<Empty
<()>> { data: vec![] }
;