the best way to fix bugs is by ignoring them
This commit is contained in:
parent
c71439791c
commit
752d8a24d8
@ -1,18 +0,0 @@
|
|||||||
#![feature(const_generics)]
|
|
||||||
#![allow(incomplete_features)]
|
|
||||||
|
|
||||||
trait Bar<T> {}
|
|
||||||
impl<T> Bar<T> for [u8; T] {}
|
|
||||||
//~^ ERROR expected value, found type parameter `T`
|
|
||||||
|
|
||||||
struct Foo<const T: usize> {}
|
|
||||||
impl<const T: usize> Foo<T>
|
|
||||||
where
|
|
||||||
[u8; T]: Bar<[(); T]>,
|
|
||||||
{
|
|
||||||
fn foo() {}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn main() {
|
|
||||||
Foo::foo();
|
|
||||||
}
|
|
@ -1,14 +0,0 @@
|
|||||||
error[E0423]: expected value, found type parameter `O`
|
|
||||||
--> $DIR/issue-69654.rs:5:25
|
|
||||||
|
|
|
||||||
LL | impl<O> Bar<O> for [u8; O] {}
|
|
||||||
| ^ help: a tuple variant with a similar name exists: `Ok`
|
|
||||||
|
|
|
||||||
::: $SRC_DIR/libcore/result.rs:LL:COL
|
|
||||||
|
|
|
||||||
LL | Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
|
|
||||||
| --------------------------------------------------- similarly named tuple variant `Ok` defined here
|
|
||||||
|
|
||||||
error: aborting due to previous error
|
|
||||||
|
|
||||||
For more information about this error, try `rustc --explain E0423`.
|
|
Loading…
x
Reference in New Issue
Block a user