]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/mut_from_ref.stderr
New upstream version 1.25.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / mut_from_ref.stderr
CommitLineData
ea8adc8c
XL
1error: mutable borrow from immutable input(s)
2 --> $DIR/mut_from_ref.rs:9:39
3 |
49 | fn this_wont_hurt_a_bit(&self) -> &mut Foo {
5 | ^^^^^^^^
6 |
7 = note: `-D mut-from-ref` implied by `-D warnings`
8note: immutable borrow here
9 --> $DIR/mut_from_ref.rs:9:29
10 |
119 | fn this_wont_hurt_a_bit(&self) -> &mut Foo {
12 | ^^^^^
13
14error: mutable borrow from immutable input(s)
15 --> $DIR/mut_from_ref.rs:15:25
16 |
1715 | fn ouch(x: &Foo) -> &mut Foo;
18 | ^^^^^^^^
19 |
20note: immutable borrow here
21 --> $DIR/mut_from_ref.rs:15:16
22 |
2315 | fn ouch(x: &Foo) -> &mut Foo;
24 | ^^^^
25
26error: mutable borrow from immutable input(s)
27 --> $DIR/mut_from_ref.rs:24:21
28 |
2924 | fn fail(x: &u32) -> &mut u16 {
30 | ^^^^^^^^
31 |
32note: immutable borrow here
33 --> $DIR/mut_from_ref.rs:24:12
34 |
3524 | fn fail(x: &u32) -> &mut u16 {
36 | ^^^^
37
38error: mutable borrow from immutable input(s)
39 --> $DIR/mut_from_ref.rs:28:50
40 |
4128 | fn fail_lifetime<'a>(x: &'a u32, y: &mut u32) -> &'a mut u32 {
42 | ^^^^^^^^^^^
43 |
44note: immutable borrow here
45 --> $DIR/mut_from_ref.rs:28:25
46 |
4728 | fn fail_lifetime<'a>(x: &'a u32, y: &mut u32) -> &'a mut u32 {
48 | ^^^^^^^
49
50error: mutable borrow from immutable input(s)
51 --> $DIR/mut_from_ref.rs:32:67
52 |
5332 | fn fail_double<'a, 'b>(x: &'a u32, y: &'a u32, z: &'b mut u32) -> &'a mut u32 {
54 | ^^^^^^^^^^^
55 |
56note: immutable borrow here
57 --> $DIR/mut_from_ref.rs:32:27
58 |
5932 | fn fail_double<'a, 'b>(x: &'a u32, y: &'a u32, z: &'b mut u32) -> &'a mut u32 {
60 | ^^^^^^^ ^^^^^^^
61
2c00a5a8
XL
62error: aborting due to 5 previous errors
63