aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/ptr_no_const_mut.stderr
blob: 4b1bf06fd1414bd0b0f1e4abff3477b984ed8231 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error: expected `mut` or `const` keyword in raw pointer type
 --> tests/ui/ptr_no_const_mut.rs:6:43
  |
6 |         fn get_neither_const_nor_mut() -> *C;
  |                                           ^
  |
help: add `mut` or `const` here
  |
6 |         fn get_neither_const_nor_mut() -> *const C;
  |                                            +++++
6 |         fn get_neither_const_nor_mut() -> *mut C;
  |                                            +++

error: expected `const` or `mut`
 --> tests/ui/ptr_no_const_mut.rs:6:44
  |
6 |         fn get_neither_const_nor_mut() -> *C;
  |                                            ^