mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Add regression test for #42114
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
parent
4b51adf6ff
commit
cf5be0c3ac
20
tests/ui/higher-rank-trait-bounds/issue-42114.rs
Normal file
20
tests/ui/higher-rank-trait-bounds/issue-42114.rs
Normal file
@ -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
Block a user