Skip to content

Commit 402b80b

Browse files
committed
Document as-precedence.rs and downgrade to check-pass
1 parent 468e417 commit 402b80b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/ui/as-precedence.rs

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
//@ run-pass
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+
9+
//@ check-pass
210

311
#[allow(unused_parens)]
412
fn main() {

0 commit comments

Comments
 (0)