mirror of https://github.com/rust-lang/rust.git
Add regression test for #42114
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
parent
4b51adf6ff
commit
cf5be0c3ac
|
@ -0,0 +1,20 @@
|
||||||
|
// check-pass
|
||||||
|
|
||||||
|
fn lifetime<'a>()
|
||||||
|
where
|
||||||
|
&'a (): 'a,
|
||||||
|
{
|
||||||
|
/* do nothing */
|
||||||
|
}
|
||||||
|
|
||||||
|
fn doesnt_work()
|
||||||
|
where
|
||||||
|
for<'a> &'a (): 'a,
|
||||||
|
{
|
||||||
|
/* do nothing */
|
||||||
|
}
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
lifetime();
|
||||||
|
doesnt_work();
|
||||||
|
}
|
Loading…
Reference in New Issue