Content-Length: 12866 | pFad | https://doc.rust-lang.org/std/pin/../hash/../../std/sync/../../../std/../error_codes/./E0077.html

E0077 - Error codes index

Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Error code E0077

A tuple struct's element isn't a machine type when using the #[simd] attribute.

Erroneous code example:

#![allow(unused)]
#![feature(repr_simd)]

fn main() {
#[repr(simd)]
struct Bad([String; 2]); // error!
}

When using the #[simd] attribute on a tuple struct, the elements in the tuple must be machine types so SIMD operations can be applied to them.

Fixed example:

#![allow(unused)]
#![feature(repr_simd)]

fn main() {
#[repr(simd)]
struct Good([u32; 4]); // ok!
}








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://doc.rust-lang.org/std/pin/../hash/../../std/sync/../../../std/../error_codes/./E0077.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy