error[E0277]: the trait bound `NotShared: shared_memory::cast::SharedMemCast` is not satisfied --> $DIR/generic.rs:28:5 | 28 | assert_impl::>(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `shared_memory::cast::SharedMemCast` is not implemented for `NotShared` | = note: required because of the requirements on the impl of `shared_memory::cast::SharedMemCast` for `MyStruct` note: required by `assert_impl` --> $DIR/generic.rs:26:1 | 26 | fn assert_impl() {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `std::vec::Vec: shared_memory::cast::SharedMemCast` is not satisfied --> $DIR/generic.rs:29:5 | 29 | assert_impl::>>(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `shared_memory::cast::SharedMemCast` is not implemented for `std::vec::Vec` | = note: required because of the requirements on the impl of `shared_memory::cast::SharedMemCast` for `MyStruct>` note: required by `assert_impl` --> $DIR/generic.rs:26:1 | 26 | fn assert_impl() {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `&[i32]: shared_memory::cast::SharedMemCast` is not satisfied --> $DIR/generic.rs:30:5 | 30 | assert_impl::>(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `shared_memory::cast::SharedMemCast` is not implemented for `&[i32]` | = help: the following implementations were found: <[T; 1024] as shared_memory::cast::SharedMemCast> <[T; 1048576] as shared_memory::cast::SharedMemCast> <[T; 1073741824] as shared_memory::cast::SharedMemCast> <[T; 10] as shared_memory::cast::SharedMemCast> and 55 others = note: required because of the requirements on the impl of `shared_memory::cast::SharedMemCast` for `MyStruct<&[i32]>` note: required by `assert_impl` --> $DIR/generic.rs:26:1 | 26 | fn assert_impl() {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `NotShared: shared_memory::cast::SharedMemCast` is not satisfied --> $DIR/generic.rs:35:5 | 35 | assert_impl::>(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `shared_memory::cast::SharedMemCast` is not implemented for `NotShared` | = note: required because of the requirements on the impl of `shared_memory::cast::SharedMemCast` for `MyStruct2` note: required by `assert_impl` --> $DIR/generic.rs:26:1 | 26 | fn assert_impl() {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `std::vec::Vec: shared_memory::cast::SharedMemCast` is not satisfied --> $DIR/generic.rs:36:5 | 36 | assert_impl::>>(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `shared_memory::cast::SharedMemCast` is not implemented for `std::vec::Vec` | = note: required because of the requirements on the impl of `shared_memory::cast::SharedMemCast` for `MyStruct2>` note: required by `assert_impl` --> $DIR/generic.rs:26:1 | 26 | fn assert_impl() {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `&[i32]: shared_memory::cast::SharedMemCast` is not satisfied --> $DIR/generic.rs:37:5 | 37 | assert_impl::>(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `shared_memory::cast::SharedMemCast` is not implemented for `&[i32]` | = help: the following implementations were found: <[T; 1024] as shared_memory::cast::SharedMemCast> <[T; 1048576] as shared_memory::cast::SharedMemCast> <[T; 1073741824] as shared_memory::cast::SharedMemCast> <[T; 10] as shared_memory::cast::SharedMemCast> and 55 others = note: required because of the requirements on the impl of `shared_memory::cast::SharedMemCast` for `MyStruct2<&[i32]>` note: required by `assert_impl` --> $DIR/generic.rs:26:1 | 26 | fn assert_impl() {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `NotShared: shared_memory::cast::SharedMemCast` is not satisfied --> $DIR/generic.rs:42:5 | 42 | assert_impl::>(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `shared_memory::cast::SharedMemCast` is not implemented for `NotShared` | = note: required because of the requirements on the impl of `shared_memory::cast::SharedMemCast` for `MyData` note: required by `assert_impl` --> $DIR/generic.rs:26:1 | 26 | fn assert_impl() {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `std::vec::Vec: shared_memory::cast::SharedMemCast` is not satisfied --> $DIR/generic.rs:43:5 | 43 | assert_impl::>>(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `shared_memory::cast::SharedMemCast` is not implemented for `std::vec::Vec` | = note: required because of the requirements on the impl of `shared_memory::cast::SharedMemCast` for `MyData>` note: required by `assert_impl` --> $DIR/generic.rs:26:1 | 26 | fn assert_impl() {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `&[i32]: shared_memory::cast::SharedMemCast` is not satisfied --> $DIR/generic.rs:44:5 | 44 | assert_impl::>(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `shared_memory::cast::SharedMemCast` is not implemented for `&[i32]` | = help: the following implementations were found: <[T; 1024] as shared_memory::cast::SharedMemCast> <[T; 1048576] as shared_memory::cast::SharedMemCast> <[T; 1073741824] as shared_memory::cast::SharedMemCast> <[T; 10] as shared_memory::cast::SharedMemCast> and 55 others = note: required because of the requirements on the impl of `shared_memory::cast::SharedMemCast` for `MyData<&[i32]>` note: required by `assert_impl` --> $DIR/generic.rs:26:1 | 26 | fn assert_impl() {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `U: shared_memory::cast::SharedMemCast` is not satisfied --> $DIR/generic.rs:32:9 | 32 | assert_impl::>(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `shared_memory::cast::SharedMemCast` is not implemented for `U` | = help: consider adding a `where U: shared_memory::cast::SharedMemCast` bound = note: required because of the requirements on the impl of `shared_memory::cast::SharedMemCast` for `MyStruct` note: required by `assert_impl` --> $DIR/generic.rs:26:1 | 26 | fn assert_impl() {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `U: shared_memory::cast::SharedMemCast` is not satisfied --> $DIR/generic.rs:39:9 | 39 | assert_impl::>(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `shared_memory::cast::SharedMemCast` is not implemented for `U` | = help: consider adding a `where U: shared_memory::cast::SharedMemCast` bound = note: required because of the requirements on the impl of `shared_memory::cast::SharedMemCast` for `MyStruct2` note: required by `assert_impl` --> $DIR/generic.rs:26:1 | 26 | fn assert_impl() {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `U: shared_memory::cast::SharedMemCast` is not satisfied --> $DIR/generic.rs:46:9 | 46 | assert_impl::>(); | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `shared_memory::cast::SharedMemCast` is not implemented for `U` | = help: consider adding a `where U: shared_memory::cast::SharedMemCast` bound = note: required because of the requirements on the impl of `shared_memory::cast::SharedMemCast` for `MyData` note: required by `assert_impl` --> $DIR/generic.rs:26:1 | 26 | fn assert_impl() {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ For more information about this error, try `rustc --explain E0277`.