aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/ui/macro_named_argument.stderr
blob: b346f2dc85d30ae0e40affd3c0be777a02c1d4b1 (plain) (blame)
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
37
38
39
40
41
42
43
44
error: no argument named `param3` in macro "thrice"
 --> tests/ui/macro_named_argument.rs:3:10
  |
3 | #[derive(Template)]
  |          ^^^^^^^^
  |
  = note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info)

error: named argument `param1` was passed more than once
       problems parsing template source at row 5, column 15 near:
       "(param1=2, param1=3) -%}"
  --> tests/ui/macro_named_argument.rs:11:10
   |
11 | #[derive(Template)]
   |          ^^^^^^^^
   |
   = note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info)

error: problems parsing template source at row 5, column 29 near:
       "| filter(param1=12) -%}"
  --> tests/ui/macro_named_argument.rs:20:10
   |
20 | #[derive(Template)]
   |          ^^^^^^^^
   |
   = note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info)

error: named arguments must always be passed last
       problems parsing template source at row 4, column 15 near:
       "(param1=2, 3) -%}"
  --> tests/ui/macro_named_argument.rs:29:10
   |
29 | #[derive(Template)]
   |          ^^^^^^^^
   |
   = note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot have unnamed argument (`param2`) after named argument in macro "thrice"
  --> tests/ui/macro_named_argument.rs:37:10
   |
37 | #[derive(Template)]
   |          ^^^^^^^^
   |
   = note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info)