• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error: expected `mut` or `const` keyword in raw pointer type
2 --> tests/ui/ptr_no_const_mut.rs:6:43
3  |
46 |         fn get_neither_const_nor_mut() -> *C;
5  |                                           ^
6  |
7help: add `mut` or `const` here
8  |
96 |         fn get_neither_const_nor_mut() -> *const C;
10  |                                            +++++
116 |         fn get_neither_const_nor_mut() -> *mut C;
12  |                                            +++
13
14error: expected `const` or `mut`
15 --> tests/ui/ptr_no_const_mut.rs:6:44
16  |
176 |         fn get_neither_const_nor_mut() -> *C;
18  |                                            ^
19