Skip to content

Commit 8546a80

Browse files
committed
add fixme
1 parent 0e419ef commit 8546a80

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/test/ui/const-generics/const_evaluatable_checked/object-safety-ok-infer-err.rs

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ fn use_dyn<const N: usize>(v: &dyn Foo<N>) where [u8; N + 1]: Sized {
1616
}
1717

1818
fn main() {
19+
// FIXME(const_evaluatable_checked): Improve the error message here.
1920
use_dyn(&());
2021
//~^ ERROR type annotations needed
2122
}

src/test/ui/const-generics/const_evaluatable_checked/object-safety-ok-infer-err.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0284]: type annotations needed: cannot satisfy `the constant `use_dyn::<{_: usize}>::{constant#0}` can be evaluated`
2-
--> $DIR/object-safety-ok-infer-err.rs:19:5
2+
--> $DIR/object-safety-ok-infer-err.rs:20:5
33
|
44
LL | fn use_dyn<const N: usize>(v: &dyn Foo<N>) where [u8; N + 1]: Sized {
55
| ----- required by this bound in `use_dyn`

0 commit comments

Comments
 (0)