diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2021-01-31 16:36:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-31 16:36:49 +0100 |
| commit | 86732ff6e0a0dc087a67927f3467622a4e4d1824 (patch) | |
| tree | 780b814e35877d3c9e23d1c6f87faf7a18f611f4 /src/test/codegen/src-hash-algorithm | |
| parent | 47a5312c301490589cde1275adfde600bf769c79 (diff) | |
| parent | 5f1a7aa46d11129605b55b028a001bb40696f460 (diff) | |
| download | rust-86732ff6e0a0dc087a67927f3467622a4e4d1824.tar.gz rust-86732ff6e0a0dc087a67927f3467622a4e4d1824.zip | |
Rollup merge of #81566 - osa1:issue71202, r=jonas-schievink
Add a test for #71202
Closes #71202
---
Note that the test normally generates this warning:
```
warning: cannot use constants which depend on generic parameters in types
--> test.rs:10:5
|
10 | / const ITEM_IS_COPY: [(); 1 - {
11 | | trait NotCopy {
12 | | const VALUE: bool = false;
13 | | }
... |
26 | | <IsCopy<T>>::VALUE
27 | | } as usize] = [];
| |_____________________^
|
= note: `#[warn(const_evaluatable_unchecked)]` on by default
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #76200 <https://github.com/rust-lang/rust/issues/76200>
```
I added `allow(const_evaluatable_unchecked)`, but maybe we just don't want to add a test for this as the program is not really valid?
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
