about summary refs log tree commit diff
path: root/tests/ui/const-generics/std/const-generics-range.rs
diff options
context:
space:
mode:
authorPeter Jaszkowiak <p.jaszkow@gmail.com>2025-01-26 13:27:34 -0700
committerPeter Jaszkowiak <p.jaszkow@gmail.com>2025-01-30 20:37:56 -0700
commit95eaadc773eb4adab8f46cd77083d1d503fd5bff (patch)
tree373ea441f20a327ffe7ff795925369f798cabb1e /tests/ui/const-generics/std/const-generics-range.rs
parent6c1d960d88dd3755548b3818630acb63fa98187e (diff)
downloadrust-95eaadc773eb4adab8f46cd77083d1d503fd5bff.tar.gz
rust-95eaadc773eb4adab8f46cd77083d1d503fd5bff.zip
std::range
Diffstat (limited to 'tests/ui/const-generics/std/const-generics-range.rs')
-rw-r--r--tests/ui/const-generics/std/const-generics-range.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/const-generics/std/const-generics-range.rs b/tests/ui/const-generics/std/const-generics-range.rs
index f959f1e2949..3a238ed177e 100644
--- a/tests/ui/const-generics/std/const-generics-range.rs
+++ b/tests/ui/const-generics/std/const-generics-range.rs
@@ -11,7 +11,7 @@ const RANGE : _Range<{ 0 .. 1000 }> = _Range;
 
 // `RangeFrom` should be usable within const generics:
 struct _RangeFrom<const R: std::ops::RangeFrom<usize>>;
-//[min]~^ ERROR `RangeFrom<usize>` is forbidden
+//[min]~^ ERROR `std::ops::RangeFrom<usize>` is forbidden
 const RANGE_FROM : _RangeFrom<{ 0 .. }> = _RangeFrom;
 
 // `RangeFull` should be usable within const generics:
@@ -22,7 +22,7 @@ const RANGE_FULL : _RangeFull<{ .. }> = _RangeFull;
 // Regression test for #70155
 // `RangeInclusive` should be usable within const generics:
 struct _RangeInclusive<const R: std::ops::RangeInclusive<usize>>;
-//[min]~^ ERROR `RangeInclusive<usize>` is forbidden
+//[min]~^ ERROR `std::ops::RangeInclusive<usize>` is forbidden
 const RANGE_INCLUSIVE : _RangeInclusive<{ 0 ..= 999 }> = _RangeInclusive;
 
 // `RangeTo` should be usable within const generics: