Debian Codegraph @

gcc/testsuite/rust/compile/issue-2015.rs

raw
1 // { dg-additional-options "-frust-compile-until=lowering" }
2
3 macro_rules! impl_foo {
4 () => { impl Foo }
5 }
6
7 pub trait Foo {}
8
9 pub trait Bar {
10 type Baz;
11 }
12
13 pub fn foo(_value: impl Bar<Baz = impl_foo!()>) -> i32 {
14 15
15 }
16
17 pub fn bar(_value: impl Bar<Baz = impl Foo>) -> i32 {
18 16
19 }