blob: 99eeb27e30c1b8d4c55497e7590b0e12eec72ffb (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
error: attribute value must be a literal
--> $DIR/darwin-objc-bad-arg.rs:12:18
|
LL | objc::class!(s);
| ^
error: attribute value must be a literal
--> $DIR/darwin-objc-bad-arg.rs:15:18
|
LL | objc::class!(NSObject);
| ^^^^^^^^
error: `objc::class!` expected a string literal
--> $DIR/darwin-objc-bad-arg.rs:18:18
|
LL | objc::class!(123);
| ^^^
error: `objc::class!` may not contain null characters
--> $DIR/darwin-objc-bad-arg.rs:21:18
|
LL | objc::class!("NSObject\0");
| ^^^^^^^^^^^^
error: attribute value must be a literal
--> $DIR/darwin-objc-bad-arg.rs:25:21
|
LL | objc::selector!(s);
| ^
error: attribute value must be a literal
--> $DIR/darwin-objc-bad-arg.rs:28:21
|
LL | objc::selector!(alloc);
| ^^^^^
error: `objc::selector!` expected a string literal
--> $DIR/darwin-objc-bad-arg.rs:31:21
|
LL | objc::selector!(123);
| ^^^
error: `objc::selector!` may not contain null characters
--> $DIR/darwin-objc-bad-arg.rs:34:21
|
LL | objc::selector!("alloc\0");
| ^^^^^^^^^
error: aborting due to 8 previous errors
|