diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2020-02-26 19:19:56 +0100 |
|---|---|---|
| committer | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2020-03-11 09:10:49 +0100 |
| commit | fff2e0f8060c27a17abf1af79b73326e59a8661b (patch) | |
| tree | 8d7adafad5b55d64ebcb16d12dd8051393619cd1 /src/test/ui/const-generics | |
| parent | b78dbf43f4b88e94b7b7f90f0cbe100e52afeae6 (diff) | |
Print function pointer type for function pointer const generics
Diffstat (limited to 'src/test/ui/const-generics')
| -rw-r--r-- | src/test/ui/const-generics/fn-const-param-infer.stderr | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/ui/const-generics/fn-const-param-infer.stderr b/src/test/ui/const-generics/fn-const-param-infer.stderr index 44eab8baa40..05d2dff8e98 100644 --- a/src/test/ui/const-generics/fn-const-param-infer.stderr +++ b/src/test/ui/const-generics/fn-const-param-infer.stderr @@ -10,12 +10,12 @@ error[E0308]: mismatched types --> $DIR/fn-const-param-infer.rs:16:31 | LL | let _: Checked<not_one> = Checked::<not_two>; - | ---------------- ^^^^^^^^^^^^^^^^^^ expected `not_one`, found `not_two` + | ---------------- ^^^^^^^^^^^^^^^^^^ expected `{not_one as fn(usize) -> bool}`, found `{not_two as fn(usize) -> bool}` | | | expected due to this | - = note: expected struct `Checked<not_one>` - found struct `Checked<not_two>` + = note: expected struct `Checked<{not_one as fn(usize) -> bool}>` + found struct `Checked<{not_two as fn(usize) -> bool}>` error[E0308]: mismatched types --> $DIR/fn-const-param-infer.rs:20:24 @@ -36,12 +36,12 @@ error[E0308]: mismatched types --> $DIR/fn-const-param-infer.rs:25:40 | LL | let _: Checked<{generic::<u32>}> = Checked::<{generic::<u16>}>; - | ------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `generic::<u32>`, found `generic::<u16>` + | ------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `{generic::<u32> as fn(usize) -> bool}`, found `{generic::<u16> as fn(usize) -> bool}` | | | expected due to this | - = note: expected struct `Checked<generic::<u32>>` - found struct `Checked<generic::<u16>>` + = note: expected struct `Checked<{generic::<u32> as fn(usize) -> bool}>` + found struct `Checked<{generic::<u16> as fn(usize) -> bool}>` error: aborting due to 4 previous errors |
