Skip to content

Commit 1333de7

Browse files
committed
Add more tests for the optimize attribute
1 parent 20e19ee commit 1333de7

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
@@ -55,6 +55,10 @@
5555
//~^ ERROR malformed
5656
#[optimize]
5757
//~^ ERROR malformed
58+
#[optimize(none, none)]
59+
//~^ ERROR malformed
60+
#[optimize(none, speed)]
61+
//~^ ERROR malformed
5862
#[cold = 1]
5963
//~^ ERROR malformed
6064
#[must_use()]

0 commit comments

Comments
 (0)