Added lexars
This commit is contained in:
parent
382b2ce94b
commit
f9f64b0558
820 changed files with 149371 additions and 0 deletions
lexers/testdata/rust
16
lexers/testdata/rust/lifetimes_and_loop_labels.actual
vendored
Normal file
16
lexers/testdata/rust/lifetimes_and_loop_labels.actual
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
struct Bar<'b>(&'b str);
|
||||
|
||||
struct Foo<'b, 'a: 'b>(&'a Bar<'b>);
|
||||
|
||||
fn foo<'some_name>(_: Bar<'_>, _: impl Iterator<Item = Bar<'static>> + 'static) {
|
||||
'im_a_loop_label: loop {
|
||||
break 'im_a_loop_label;
|
||||
}
|
||||
|
||||
// None of these should have lifetimes
|
||||
let _ = 'a';
|
||||
let _ = b'a';
|
||||
let _ = "
|
||||
'not_a_lifetime_or_label
|
||||
";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue