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 4d7e4aa commit 10852edCopy full SHA for 10852ed
syntax/check.rs
@@ -236,7 +236,7 @@ fn check_type_ref(cx: &mut Check, ty: &Ref) {
236
fn check_type_slice_ref(cx: &mut Check, ty: &SliceRef) {
237
let supported = match &ty.inner {
238
Type::Str(_) | Type::SliceRef(_) => false,
239
- Type::Ident(ident) => !is_opaque_cxx(cx, &ident.rust),
+ Type::Ident(ident) => !is_unsized(cx, &ty.inner) || cx.types.rust.contains(&ident.rust),
240
element => !is_unsized(cx, element),
241
};
242
0 commit comments