]> git.lizzy.rs Git - rust.git/blob - src/test/ui/trivial-bounds-inconsistent-copy-reborrow.nll.stderr
Add tests for trivial bounds
[rust.git] / src / test / ui / trivial-bounds-inconsistent-copy-reborrow.nll.stderr
1 error[E0596]: cannot borrow immutable item `**t` as mutable
2   --> $DIR/trivial-bounds-inconsistent-copy-reborrow.rs:16:5
3    |
4 LL |     *t //~ ERROR
5    |     ^^ cannot borrow as mutable
6    |
7    = note: the value which is causing this path not to be mutable is...: `*t`
8
9 error[E0596]: cannot borrow immutable item `**t` as mutable
10   --> $DIR/trivial-bounds-inconsistent-copy-reborrow.rs:20:6
11    |
12 LL |     {*t} //~ ERROR
13    |      ^^ cannot borrow as mutable
14    |
15    = note: the value which is causing this path not to be mutable is...: `*t`
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0596`.