Skip to content

Commit b353ff4

Browse files
committed
Add test with capitalized Self macro
gcc/testsuite/ChangeLog: * rust/compile/issue-3974.rs: New test. Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
1 parent 2ee402a commit b353ff4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
impl<'a, F> RunUntil<'a, F> {
2+
// { dg-error "could not resolve type path" "" { target *-*-* } .-1 }
3+
fn project<'pin>() -> Projection<'pin, 'a, F> {
4+
// { dg-error "could not resolve type path" "" { target *-*-* } .-1 }
5+
Self!()
6+
// { dg-error "could not resolve macro invocation" "" { target *-*-* } .-1 }
7+
}
8+
}

0 commit comments

Comments
 (0)