Skip to content

Commit fc2cd77

Browse files
committed
Fix comment describing what the test does
1 parent 478b378 commit fc2cd77

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
// Tests that two closures cannot simultaneously have mutable
2-
// access to the variable, whether that mutable access be used
3-
// for direct assignment or for taking mutable ref. Issue #6801.
1+
//! Test for invalid MetaItem syntax in the attribute
42
3+
#![crate_type = "lib"]
54
#![feature(rustc_attrs)]
65

76
#[rustc_on_unimplemented(
87
message="the message"
98
label="the label" //~ ERROR expected `,`, found `label`
109
)]
1110
trait T {}
12-
13-
fn main() { }

tests/ui/on-unimplemented/expected-comma-found-token.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: expected `,`, found `label`
2-
--> $DIR/expected-comma-found-token.rs:9:5
2+
--> $DIR/expected-comma-found-token.rs:8:5
33
|
44
LL | message="the message"
55
| - expected `,`

0 commit comments

Comments
 (0)