File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
error[E0133]: call to unsafe function `f` is unsafe and requires unsafe function or block
2
2
--> tests/ui/missing_unsafe.rs:4:12
3
3
|
4
+ 1 | #[cxx::bridge]
5
+ | -------------- items do not inherit unsafety from separate enclosing items
6
+ ...
4
7
4 | fn f(x: i32);
5
- | ^ - items do not inherit unsafety from separate enclosing items
6
- | |
7
- | call to unsafe function
8
+ | ^ call to unsafe function
8
9
|
9
10
= note: consult the function's documentation for information on how to avoid undefined behavior
Original file line number Diff line number Diff line change 1
1
error: C++ does not allow pointer to reference as a type
2
- --> tests/ui/ptr_unsupported.rs:6:38
2
+ --> tests/ui/ptr_unsupported.rs:6:42
3
3
|
4
4
6 | fn get_ptr_to_reference<'a>() -> *mut &'a C;
5
5
| ^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments