File: ptr_no_const_mut.stderr

package info (click to toggle)
rust-cxx 1.0.141-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,632 kB
  • sloc: cpp: 1,573; javascript: 124; sh: 11; makefile: 8
file content (18 lines) | stat: -rw-r--r-- 632 bytes parent folder | download | duplicates (7)
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() -> *mut C;
  |                                            +++
6 |         fn get_neither_const_nor_mut() -> *const C;
  |                                            +++++

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