Skip to content

Commit 1745325

Browse files
committed
Add more tests for the optimize attribute
1 parent 49b19d3 commit 1745325

4 files changed

Lines changed: 168 additions & 70 deletions

File tree

tests/ui/attributes/malformed-attrs.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@
5454
//~^ ERROR malformed
5555
#[optimize]
5656
//~^ ERROR malformed
57+
#[optimize(none, none)]
58+
//~^ ERROR malformed
59+
#[optimize(none, speed)]
60+
//~^ ERROR malformed
5761
#[cold = 1]
5862
//~^ ERROR malformed
5963
#[must_use()]

0 commit comments

Comments
 (0)