Commit 252dc48
committed
tests: ensure that the data cannot be accessed
Similarly to guards, the pin-init data generated by the `#[pin_data]`
attribute macro and instantiated by an initializer macro should not be
accessible by user-controlled code.
Signed-off-by: Benno Lossin <lossin@kernel.org>1 parent dc0131a commit 252dc48
File tree
2 files changed
+17
-0
lines changed- tests/ui/compile-fail/init
2 files changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments