about summary refs log tree commit diff
path: root/tests/ui/consts/issue-87046.stderr
blob: 36e2564fae6b00b6cbfcd858d8df863ebe190532 (plain)
1
2
3
4
5
6
7
8
9
10
11
error: cannot use unsized non-slice type `Username` in constant patterns
  --> $DIR/issue-87046.rs:28:13
   |
LL | pub const ROOT_USER: &Username = Username::from_str("root");
   | ------------------------------ constant defined here
...
LL |             ROOT_USER => true,
   |             ^^^^^^^^^

error: aborting due to 1 previous error