]> git.lizzy.rs Git - rust.git/blob - src/test/ui/underscore-imports/hygiene.stderr
Rollup merge of #68282 - tmiasko:sanitizer-example, r=steveklabnik
[rust.git] / src / test / ui / underscore-imports / hygiene.stderr
1 error[E0599]: no method named `deref` found for reference `&()` in the current scope
2   --> $DIR/hygiene.rs:38:11
3    |
4 LL |     (&()).deref();
5    |           ^^^^^ method not found in `&()`
6    |
7    = help: items from traits can only be used if the trait is in scope
8 help: the following trait is implemented but not in scope; perhaps add a `use` for it:
9    |
10 LL | use std::ops::Deref;
11    |
12
13 error[E0599]: no method named `deref_mut` found for mutable reference `&mut ()` in the current scope
14   --> $DIR/hygiene.rs:39:15
15    |
16 LL |     (&mut ()).deref_mut();
17    |               ^^^^^^^^^ method not found in `&mut ()`
18    |
19    = help: items from traits can only be used if the trait is in scope
20 help: the following trait is implemented but not in scope; perhaps add a `use` for it:
21    |
22 LL | use std::ops::DerefMut;
23    |
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0599`.