1 warning: unnecessary path disambiguator
2 --> $DIR/issue-36116.rs:20:50
4 LL | let f = Some(Foo { _a: 42 }).map(|a| a as Foo::<i32>);
7 warning: unnecessary path disambiguator
8 --> $DIR/issue-36116.rs:21:15
10 LL | let g: Foo::<i32> = Foo { _a: 42 };
11 | ^^ try removing `::`