diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-04-30 23:29:40 +0200 |
|---|---|---|
| committer | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-04-30 23:29:40 +0200 |
| commit | 0dbea7ad549021a6b99aeafcdcdc8af89134d545 (patch) | |
| tree | ecdd2653182fc09ec4e78661bc7014b0154eb536 /tests | |
| parent | f2eb9f85b9b52e6538c3c7fc160725963272d471 (diff) | |
| download | rust-0dbea7ad549021a6b99aeafcdcdc8af89134d545.tar.gz rust-0dbea7ad549021a6b99aeafcdcdc8af89134d545.zip | |
Close parentheses for `offset_of` in AST pretty printing
HIR pretty printing already handles it correctly.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/pretty/offset_of.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/pretty/offset_of.rs b/tests/pretty/offset_of.rs new file mode 100644 index 00000000000..e1783432857 --- /dev/null +++ b/tests/pretty/offset_of.rs @@ -0,0 +1,4 @@ +// pp-exact +#![feature(offset_of)] + +fn main() { std::mem::offset_of!(std :: ops :: Range < usize >, end); } |
