]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/issues/issue-54600.stderr
Rollup merge of #105063 - aDotInTheVoid:rdj-dont-assume-core, r=notriddle
[rust.git] / src / test / ui / impl-trait / issues / issue-54600.stderr
1 error[E0562]: `impl Trait` only allowed in function and inherent method return types, not in variable binding
2   --> $DIR/issue-54600.rs:4:19
3    |
4 LL |     let x: Option<impl Debug> = Some(44_u32);
5    |                   ^^^^^^^^^^
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0562`.