2023-01-31 10:45:30 -06:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/field-projection-mutating-context.rs:9:13
|
|
|
|
|
|
|
|
|
LL | let Foo(ref mut y): Foo<fn(&'static str)> = x;
|
|
|
|
| ^^^^^^^^^ one type is more general than the other
|
|
|
|
|
|
2023-12-07 21:54:41 -06:00
|
|
|
= note: expected fn pointer `for<'a> fn(&'a _)`
|
|
|
|
found fn pointer `fn(&_)`
|
2023-01-31 10:45:30 -06:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2023-01-31 10:45:30 -06:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|