]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/borrow_box.stderr
New upstream version 1.23.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / borrow_box.stderr
CommitLineData
ea8adc8c
XL
1error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
2 --> $DIR/borrow_box.rs:9:19
3 |
49 | pub fn test1(foo: &mut Box<bool>) {
5 | ^^^^^^^^^^^^^^ help: try: `&mut bool`
6 |
7note: lint level defined here
8 --> $DIR/borrow_box.rs:4:9
9 |
104 | #![deny(borrowed_box)]
11 | ^^^^^^^^^^^^
12
13error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
14 --> $DIR/borrow_box.rs:14:14
15 |
1614 | let foo: &Box<bool>;
17 | ^^^^^^^^^^ help: try: `&bool`
18
19error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
20 --> $DIR/borrow_box.rs:18:10
21 |
2218 | foo: &'a Box<bool>
23 | ^^^^^^^^^^^^^ help: try: `&'a bool`
24
25error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
26 --> $DIR/borrow_box.rs:22:17
27 |
2822 | fn test4(a: &Box<bool>);
29 | ^^^^^^^^^^ help: try: `&bool`
30