//! > Literal value out of range.

//! > test_runner_name
test_function_lowering

//! > function
fn foo() {
    let _a = 0x100_u8;
    let _a = 0x10000_u16;
    let _a = 0x100000000_u32;
    let _b = 0x10000000000000000_u64;
    let _c = 0x100000000000000000000000000000000_u128;
    let _d = 0x800000000000011000000000000000000000000000000000000000000000001;
}

//! > function_name
foo

//! > module_code

//! > lowering_diagnostics
error: The value does not fit within the range of type core::integer::u8.
 --> lib.cairo:2:14
    let _a = 0x100_u8;
             ^******^

error: The value does not fit within the range of type core::integer::u16.
 --> lib.cairo:3:14
    let _a = 0x10000_u16;
             ^*********^

error: The value does not fit within the range of type core::integer::u32.
 --> lib.cairo:4:14
    let _a = 0x100000000_u32;
             ^*************^

error: The value does not fit within the range of type core::integer::u64.
 --> lib.cairo:5:14
    let _b = 0x10000000000000000_u64;
             ^*********************^

error: The value does not fit within the range of type core::integer::u128.
 --> lib.cairo:6:14
    let _c = 0x100000000000000000000000000000000_u128;
             ^**************************************^

error: The value does not fit within the range of type core::felt252.
 --> lib.cairo:7:14
    let _d = 0x800000000000011000000000000000000000000000000000000000000000001;
             ^***************************************************************^

//! > lowering_flat
Parameters:
blk0 (root):
Statements:
  (v6: ()) <- struct_construct()
End:
  Return(v6)

//! > semantic_diagnostics

//! > ==========================================================================

//! > Literal short string out of range.

//! > test_runner_name
test_function_lowering

//! > function
fn foo() {
    let _a = 'aa'_u8;
    let _a = 'aba'_u16;
    let _b = 'abcda'_u32;
    let _b = 'abcdabcda'_u64;
    let _c = 'abcdabcdabcdabcda'_u128;
    let _d = 'abcdabcdabcdabcdabcdabcdabcdabcd';
}

//! > function_name
foo

//! > module_code

//! > lowering_diagnostics
error: The value does not fit within the range of type core::integer::u8.
 --> lib.cairo:2:14
    let _a = 'aa'_u8;
             ^*****^

error: The value does not fit within the range of type core::integer::u16.
 --> lib.cairo:3:14
    let _a = 'aba'_u16;
             ^*******^

error: The value does not fit within the range of type core::integer::u32.
 --> lib.cairo:4:14
    let _b = 'abcda'_u32;
             ^*********^

error: The value does not fit within the range of type core::integer::u64.
 --> lib.cairo:5:14
    let _b = 'abcdabcda'_u64;
             ^*************^

error: The value does not fit within the range of type core::integer::u128.
 --> lib.cairo:6:14
    let _c = 'abcdabcdabcdabcda'_u128;
             ^**********************^

error: The value does not fit within the range of type core::felt252.
 --> lib.cairo:7:14
    let _d = 'abcdabcdabcdabcdabcdabcdabcdabcd';
             ^********************************^

//! > lowering_flat
Parameters:
blk0 (root):
Statements:
  (v6: ()) <- struct_construct()
End:
  Return(v6)

//! > semantic_diagnostics
