-
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
From #86571 (comment).
I tried this code (playground):
#![feature(const_trait_impl)]
trait A {}
trait B: A {}
struct Foo;
impl A for Foo {}
impl const B for Foo {}
I expected to see this happen: The compiler might error because Foo
does not impl const A
Instead, this happened: This code has no compiler errors.
This is for discussion. I am neither for nor against how this is handled currently.
@rustbot label requires-nightly F-const_trait_impl
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.