Skip to content

Commit ed5f5f6

Browse files
committed
trybuild
1 parent 76f2980 commit ed5f5f6

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

tests/test_compile/cases/deku_size_vec.stderr

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ error[E0599]: the associated item `SIZE_BITS` exists for struct `Test`, but its
2626
9 | let _size = Test::SIZE_BITS;
2727
| ^^^^^^^^^ associated item cannot be called on `Test` due to unsatisfied trait bounds
2828
|
29-
::: $RUST/alloc/src/vec/mod.rs
30-
|
31-
| pub struct Vec<T, #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global> {
32-
| ------------------------------------------------------------------------------------------------ doesn't satisfy `Vec<u8>: deku::DekuSize`
33-
|
3429
= note: trait bound `Vec<u8>: deku::DekuSize` was not satisfied
3530
= help: items from traits can only be used if the trait is implemented and in scope
3631
= note: the following trait defines an item `SIZE_BITS`, perhaps you need to implement it:

tests/test_compile/cases/no_deku_id_generic_enum.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0599]: no method named `deku_id` found for enum `Body` in the current scope
1+
error[E0599]: no method named `deku_id` found for enum `Body<T>` in the current scope
22
--> tests/test_compile/cases/no_deku_id_generic_enum.rs:12:7
33
|
44
5 | pub enum Body<T: for<'a> DekuReader<'a>> {

tests/test_compile/cases/unknown_endian.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ warning: unreachable expression
3939
| unreachable expression
4040
| any code following this `match` expression is unreachable, as all arms diverge
4141
|
42-
= note: `#[warn(unreachable_code)]` on by default
42+
= note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
4343
= note: this warning originates in the derive macro `DekuRead` (in Nightly builds, run with -Z macro-backtrace for more info)

0 commit comments

Comments
 (0)