forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathissue-67696-const-prop-ice.stderr
26 lines (22 loc) · 1.25 KB
/
issue-67696-const-prop-ice.stderr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
warning: the where-clause bound `[for<'r> fn(&'r ())]: Copy` is impossible to satisfy
--> $DIR/issue-67696-const-prop-ice.rs:13:33
|
LL | fn foo(&self) -> Self where Self: Copy { *(&[] as &[_]) }
| ----------------------------^^^^^^^^^^------------------- this item cannot be referenced without causing an error
|
= help: add `#![feature(trivial_bounds)]` to the crate attributes to allow it
warning: the where-clause bound `[for<'r> fn(&'r ())]: Clone` is impossible to satisfy
--> $DIR/issue-67696-const-prop-ice.rs:13:33
|
LL | fn foo(&self) -> Self where Self: Copy { *(&[] as &[_]) }
| ----------------------------^^^^^^^^^^------------------- this item cannot be referenced without causing an error
|
= help: add `#![feature(trivial_bounds)]` to the crate attributes to allow it
warning: the where-clause bound `[for<'r> fn(&'r ())]: Sized` is impossible to satisfy
--> $DIR/issue-67696-const-prop-ice.rs:13:33
|
LL | fn foo(&self) -> Self where Self: Copy { *(&[] as &[_]) }
| ----------------------------^^^^^^^^^^------------------- this item cannot be referenced without causing an error
|
= help: add `#![feature(trivial_bounds)]` to the crate attributes to allow it
warning: 3 warnings emitted