]> git.lizzy.rs Git - rust.git/blob - src/test/ui/trivial-bounds-inconsistent-sized.stderr
Remove unnecessary stat64 pointer casts
[rust.git] / src / test / ui / trivial-bounds-inconsistent-sized.stderr
1 warning: Trait bound str: std::marker::Sized does not depend on any type or lifetime parameters
2   --> $DIR/trivial-bounds-inconsistent-sized.rs:24:1
3    |
4 LL | struct S(str, str) where str: Sized;
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: #[warn(trivial_bounds)] on by default
8
9 warning: Trait bound for<'a> T<A + 'a>: std::marker::Sized does not depend on any type or lifetime parameters
10   --> $DIR/trivial-bounds-inconsistent-sized.rs:26:1
11    |
12 LL | / fn unsized_local() where for<'a> T<A + 'a>: Sized {
13 LL | |     let x: T<A> = *(Box::new(T { x: 1 }) as Box<T<A>>);
14 LL | | }
15    | |_^
16
17 warning: Trait bound str: std::marker::Sized does not depend on any type or lifetime parameters
18   --> $DIR/trivial-bounds-inconsistent-sized.rs:30:1
19    |
20 LL | / fn return_str() -> str where str: Sized {
21 LL | |     *"Sized".to_string().into_boxed_str()
22 LL | | }
23    | |_^
24