summary refs log tree commit diff
path: root/tests/ui/polymorphization/inline-tainted-body.stderr
blob: 5c3bd70adae003625941c0e86ac7040e8669bd5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
error[E0392]: type parameter `T` is never used
  --> $DIR/inline-tainted-body.rs:7:21
   |
LL | pub struct WeakOnce<T>();
   |                     ^ unused type parameter
   |
   = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
   = help: if you intended `T` to be a const parameter, use `const T: /* Type */` instead

error: functions with the "rust-call" ABI must take a single non-self tuple argument
  --> $DIR/inline-tainted-body.rs:11:35
   |
LL |     extern "rust-call" fn try_get(&self) -> Option<Arc<T>> {}
   |                                   ^^^^^

error[E0308]: mismatched types
  --> $DIR/inline-tainted-body.rs:11:45
   |
LL |     extern "rust-call" fn try_get(&self) -> Option<Arc<T>> {}
   |                           -------           ^^^^^^^^^^^^^^ expected `Option<Arc<T>>`, found `()`
   |                           |
   |                           implicitly returns `()` as its body has no tail or `return` expression
   |
   = note:   expected enum `Option<Arc<T>>`
           found unit type `()`

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0308, E0392.
For more information about an error, try `rustc --explain E0308`.