]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/inner_type2.stderr
Rollup merge of #106751 - clubby789:const-intrinsic, r=GuillaumeGomez
[rust.git] / tests / ui / suggestions / inner_type2.stderr
1 error[E0599]: no method named `method` found for struct `LocalKey` in the current scope
2   --> $DIR/inner_type2.rs:18:12
3    |
4 LL |     STRUCT.method();
5    |            ^^^^^^ method not found in `LocalKey<Struct<u32>>`
6    |
7    = help: use `with` or `try_with` to access thread local storage
8 note: the method `method` exists on the type `Struct<u32>`
9   --> $DIR/inner_type2.rs:6:5
10    |
11 LL |     pub fn method(&self) {}
12    |     ^^^^^^^^^^^^^^^^^^^^
13
14 error[E0599]: no method named `method` found for union `MaybeUninit` in the current scope
15   --> $DIR/inner_type2.rs:23:10
16    |
17 LL |     item.method();
18    |          ^^^^^^ method not found in `MaybeUninit<Struct<u32>>`
19    |
20    = help: if this `MaybeUninit<Struct<u32>>` has been initialized, use one of the `assume_init` methods to access the inner value
21 note: the method `method` exists on the type `Struct<u32>`
22   --> $DIR/inner_type2.rs:6:5
23    |
24 LL |     pub fn method(&self) {}
25    |     ^^^^^^^^^^^^^^^^^^^^
26
27 error: aborting due to 2 previous errors
28
29 For more information about this error, try `rustc --explain E0599`.