We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64963d6 commit 1fadb97Copy full SHA for 1fadb97
src/test/compile-fail/issue-2478.rs
@@ -9,7 +9,7 @@
9
// except according to those terms.
10
11
// xfail-test
12
-fn foo() -> &'a int {
+fn foo<'a>() -> &'a int { //~ ERROR unconstrained region
13
return &x;
14
}
15
static x: int = 5;
0 commit comments