]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrow_box.stderr
Merge branch 'master' into rustfmt_tests
[rust.git] / tests / ui / borrow_box.stderr
1 error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
2   --> $DIR/borrow_box.rs:15:19
3    |
4 15 | pub fn test1(foo: &mut Box<bool>) {
5    |                   ^^^^^^^^^^^^^^ help: try: `&mut bool`
6    |
7 note: lint level defined here
8   --> $DIR/borrow_box.rs:10:9
9    |
10 10 | #![deny(clippy::borrowed_box)]
11    |         ^^^^^^^^^^^^^^^^^^^^
12
13 error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
14   --> $DIR/borrow_box.rs:20:14
15    |
16 20 |     let foo: &Box<bool>;
17    |              ^^^^^^^^^^ help: try: `&bool`
18
19 error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
20   --> $DIR/borrow_box.rs:24:10
21    |
22 24 |     foo: &'a Box<bool>,
23    |          ^^^^^^^^^^^^^ help: try: `&'a bool`
24
25 error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
26   --> $DIR/borrow_box.rs:28:17
27    |
28 28 |     fn test4(a: &Box<bool>);
29    |                 ^^^^^^^^^^ help: try: `&bool`
30
31 error: aborting due to 4 previous errors
32