about summary refs log tree commit diff
path: root/tests/ui/traits/const-traits/mutually-exclusive-trait-bound-modifiers.stderr
blob: 18e4d160f5f46d350523d03418bd5c8cc6c1b6f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
error: `~const` trait not allowed with `?` trait polarity modifier
  --> $DIR/mutually-exclusive-trait-bound-modifiers.rs:3:38
   |
LL | const fn maybe_const_maybe<T: ~const ?Sized>() {}
   |                               ------ ^
   |                               |
   |                               there is not a well-defined meaning for a `~const ?` trait

error: `const` trait not allowed with `?` trait polarity modifier
  --> $DIR/mutually-exclusive-trait-bound-modifiers.rs:6:25
   |
LL | fn const_maybe<T: const ?Sized>() {}
   |                   ----- ^
   |                   |
   |                   there is not a well-defined meaning for a `const ?` trait

error: `~const` trait not allowed with `!` trait polarity modifier
  --> $DIR/mutually-exclusive-trait-bound-modifiers.rs:9:41
   |
LL | const fn maybe_const_negative<T: ~const !Trait>() {}
   |                                  ------ ^
   |                                  |
   |                                  there is not a well-defined meaning for a `~const !` trait

error: `const` trait not allowed with `!` trait polarity modifier
  --> $DIR/mutually-exclusive-trait-bound-modifiers.rs:13:28
   |
LL | fn const_negative<T: const !Trait>() {}
   |                      ----- ^
   |                      |
   |                      there is not a well-defined meaning for a `const !` trait

error: negative bounds are not supported
  --> $DIR/mutually-exclusive-trait-bound-modifiers.rs:9:41
   |
LL | const fn maybe_const_negative<T: ~const !Trait>() {}
   |                                         ^

error: negative bounds are not supported
  --> $DIR/mutually-exclusive-trait-bound-modifiers.rs:13:28
   |
LL | fn const_negative<T: const !Trait>() {}
   |                            ^

error: aborting due to 6 previous errors