mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-27 12:25:05 +00:00
Move default const test out of line
This commit is contained in:
parent
3ec2dcfc0d
commit
c4fd463981
5 changed files with 0 additions and 10 deletions
|
@ -208,16 +208,6 @@ pub(super) fn maybe_item(p: &mut Parser, m: Marker, flavor: ItemFlavor) -> Resul
|
||||||
// default type T = Bar;
|
// default type T = Bar;
|
||||||
// default fn foo() {}
|
// default fn foo() {}
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// test_err default_const
|
|
||||||
// trait T {
|
|
||||||
// default const f: u8 = 0;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// test default_const
|
|
||||||
// impl T for Foo {
|
|
||||||
// default const f: u8 = 0;
|
|
||||||
// }
|
|
||||||
T![const] => {
|
T![const] => {
|
||||||
consts::const_def(p, m);
|
consts::const_def(p, m);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue