We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e4e601 commit b7ae32bCopy full SHA for b7ae32b
ices/77708.sh
@@ -0,0 +1,17 @@
1
+#!/bin/bash
2
+
3
+rustc --edition 2018 -C incremental=foo --crate-type lib - <<'EOF'
4
+#![feature(const_generics, const_evaluatable_checked)]
5
+#![allow(incomplete_features)]
6
+use core::{convert::TryFrom, num::NonZeroUsize};
7
8
+struct A<const N: NonZeroUsize>([u8; N.get()]) where [u8; N.get()]: Sized;
9
10
+impl<'a, const N: NonZeroUsize> TryFrom<&'a [u8]> for A<N> where [u8; N.get()]: Sized {
11
+ type Error = ();
12
+ fn try_from(slice: &'a [u8]) -> Result<A<N>, ()> {
13
+ let _x = <&[u8; N.get()] as TryFrom<&[u8]>>::try_from(slice);
14
+ unimplemented!();
15
+ }
16
+}
17
+EOF
0 commit comments