23 lines
512 B
Text
23 lines
512 B
Text
error: teto::test can only be called on functions
|
|
--> tests/ui/compile_fail/not_fn.rs:2:1
|
|
|
|
|
2 | struct S {}
|
|
| ^^^^^^
|
|
|
|
error: teto::test can only be called on functions
|
|
--> tests/ui/compile_fail/not_fn.rs:5:1
|
|
|
|
|
5 | enum E {}
|
|
| ^^^^
|
|
|
|
error: teto::test can only be called on functions
|
|
--> tests/ui/compile_fail/not_fn.rs:8:7
|
|
|
|
|
8 | const C: usize = 10;
|
|
| ^
|
|
|
|
error: teto::test can only be called on functions
|
|
--> tests/ui/compile_fail/not_fn.rs:11:1
|
|
|
|
|
11 | static S: usize = 10;
|
|
| ^^^^^^
|