about summary refs log tree commit diff
path: root/tests/ui/invalid/invalid-inline.stderr
blob: 54e6b2b540824057dac4b4372b9e8e620b9c7447 (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
35
36
error[E0805]: malformed `inline` attribute input
  --> $DIR/invalid-inline.rs:3:1
   |
LL | #[inline(please,no)]
   | ^^^^^^^^-----------^
   |         |
   |         expected a single argument here
   |
help: try changing it to one of the following valid forms of the attribute
   |
LL - #[inline(please,no)]
LL + #[inline(always|never)]
   |
LL - #[inline(please,no)]
LL + #[inline]
   |

error[E0805]: malformed `inline` attribute input
  --> $DIR/invalid-inline.rs:7:1
   |
LL | #[inline()]
   | ^^^^^^^^--^
   |         |
   |         expected a single argument here
   |
help: try changing it to one of the following valid forms of the attribute
   |
LL | #[inline(always|never)]
   |          ++++++++++++
LL - #[inline()]
LL + #[inline]
   |

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0805`.