summaryrefslogtreecommitdiffstats
path: root/third_party/rust/cstr/tests/compile_fail/non-str.stderr
blob: bbbf7e71691512d23337c7eb0cebca3dada2654e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: expected one of: byte string literal, string literal, identifier
 --> $DIR/non-str.rs:4:22
  |
4 |     let _foo = cstr!(1);
  |                      ^

error: expected one of: byte string literal, string literal, identifier
 --> $DIR/non-str.rs:5:22
  |
5 |     let _foo = cstr!(("a"));
  |                      ^^^^^

error: expected one of: byte string literal, string literal, identifier
 --> $DIR/non-str.rs:6:22
  |
6 |     let _foo = cstr!(&1);
  |                      ^