about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-02-25 16:10:58 +0000
committerbors <bors@rust-lang.org>2023-02-25 16:10:58 +0000
commit289208bc9fb08704db37c6ce0fb700bbfb3b7099 (patch)
tree82cd1eeaa269a027b8193517948fa66e2685ee2c /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff
parent9a4efb4cc3f6516d27c246bdb414e99bb916b554 (diff)
parent44e47fe4083adbd35889da7a6489ec3252a4f04b (diff)
downloadrust-289208bc9fb08704db37c6ce0fb700bbfb3b7099.tar.gz
rust-289208bc9fb08704db37c6ce0fb700bbfb3b7099.zip
Auto merge of #14203 - shilangyu:fix/angled-path-segments, r=lnicola
fix: Add check for extra path segments after a fully qualified one

`type A = <()>;` is parsed just fine by rust-analyzer, but then rejected by rustc:

```
error: expected `::`, found `;`
 --> x.rs:7:14
  |
7 | type A = <()>;
  |              ^ expected `::`

```

Fixed by adding a lookahead for the `::` token after fully-qualified path segments.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions