-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-const_trait_impl`#![feature(const_trait_impl)]``#![feature(const_trait_impl)]`requires-nightlyThis issue requires a nightly compiler in some way.This issue requires a nightly compiler in some way.
Description
I tried this code:
#![feature(const_fn_trait_bound)]
#![feature(const_trait_impl)]
pub trait Super {}
pub trait Sub: Super {}
impl<A> const Super for &A where A: ~const Super {}
impl<A> const Sub for &A where A: ~const Sub {}
I expected to see this happen: the code compiles successfully
Instead, this happened: compiler errors saying that error[E0277]: the trait bound `A: Super` is not satisfied
cc @rust-lang/wg-const-eval
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-const_trait_impl`#![feature(const_trait_impl)]``#![feature(const_trait_impl)]`requires-nightlyThis issue requires a nightly compiler in some way.This issue requires a nightly compiler in some way.