Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions tests/ui/const-generics/mgca/type-const-associated-default.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#![feature(min_generic_const_args)]

trait Trait {
#[type_const]
const N: usize = 10;
}

fn main(){
}
17 changes: 17 additions & 0 deletions tests/ui/const-generics/mgca/type-const-associated-default.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
error: cannot find attribute `type_const` in this scope
--> $DIR/type-const-associated-default.rs:4:7
|
LL | #[type_const]
| ^^^^^^^^^^

warning: the feature `min_generic_const_args` is incomplete and may not be safe to use and/or cause compiler crashes
--> $DIR/type-const-associated-default.rs:1:12
|
LL | #![feature(min_generic_const_args)]
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #132980 <https://github.com/rust-lang/rust/issues/132980> for more information
= note: `#[warn(incomplete_features)]` on by default

error: aborting due to 1 previous error; 1 warning emitted

Loading