about summary refs log tree commit diff
path: root/tests/ui/attributes/optimize.stderr
blob: 2ded1a973f33d2db3c5e6bb5b3209cb57f728999 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
error: `#[optimize]` attribute cannot be used on structs
  --> $DIR/optimize.rs:8:1
   |
LL | #[optimize(speed)]
   | ^^^^^^^^^^^^^^^^^^
   |
   = help: `#[optimize]` can only be applied to functions

error: `#[optimize]` attribute cannot be used on expressions
  --> $DIR/optimize.rs:12:5
   |
LL |     #[optimize(speed)]
   |     ^^^^^^^^^^^^^^^^^^
   |
   = help: `#[optimize]` can only be applied to functions

error: `#[optimize]` attribute cannot be used on modules
  --> $DIR/optimize.rs:21:1
   |
LL | #[optimize(speed)]
   | ^^^^^^^^^^^^^^^^^^
   |
   = help: `#[optimize]` can only be applied to functions

error: `#[optimize]` attribute cannot be used on inherent impl blocks
  --> $DIR/optimize.rs:24:1
   |
LL | #[optimize(speed)]
   | ^^^^^^^^^^^^^^^^^^
   |
   = help: `#[optimize]` can only be applied to functions

error: aborting due to 4 previous errors