]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/borrow_box.stderr
Move old-style test to examples
[rust.git] / clippy_tests / examples / borrow_box.stderr
1 error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
2   --> borrow_box.rs:10:19
3    |
4 10 | pub fn test1(foo: &Box<bool>) { //~ ERROR you seem to be trying to use `&Box<T>`
5    |                   ^^^^^^^^^^
6    |
7    = note: #[deny(borrowed_box)] implied by #[deny(clippy)]
8 note: lint level defined here
9   --> borrow_box.rs:4:9
10    |
11 4  | #![deny(clippy)]
12    |         ^^^^^^
13    = help: replace `&Box<T>` with simply `&T`
14
15 error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
16   --> borrow_box.rs:19:10
17    |
18 19 |     foo: &'a Box<bool> //~ ERROR you seem to be trying to use `&Box<T>`
19    |          ^^^^^^^^^^^^^
20    |
21    = note: #[deny(borrowed_box)] implied by #[deny(clippy)]
22    = help: replace `&Box<T>` with simply `&T`
23
24 error: aborting due to previous error(s)
25
26 error: Could not compile `clippy_tests`.
27
28 To learn more, run the command again with --verbose.