Skip to content

Commit 891c371

Browse files
committed
Document as-precedence.rs
1 parent f918a29 commit 891c371

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: tests/ui/as-precedence.rs

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
//! Parser precedence test to help with [RFC 87 "Trait Bounds with Plus"][rfc-87], to check the
2+
//! precedence of the `as` operator in relation to some arithmetic bin-ops and parentheses.
3+
//!
4+
//! Editor's note: this test seems quite incomplete compared to what's possible nowadays. Maybe
5+
//! there's another set of tests whose coverage overshadows this test?
6+
//!
7+
//! [rfc-87]: https://rust-lang.github.io/rfcs/0087-trait-bounds-with-plus.html
8+
19
//@ run-pass
210

311
#[allow(unused_parens)]

0 commit comments

Comments
 (0)